diff options
| author | Christian Cleberg <[email protected]> | 2026-04-21 23:21:19 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-21 23:21:19 -0500 |
| commit | 3846dc2f5dee69fc4ffbc052009a60e17d60e36b (patch) | |
| tree | 867dca9d45b87f318c1b368cd535c9c9fb53e29d /LookupSnapshot.swift | |
| parent | e73d58ee5dd43eaeaaa717f7781cc22256df30f0 (diff) | |
| download | domain-dig-3846dc2f5dee69fc4ffbc052009a60e17d60e36b.tar.gz domain-dig-3846dc2f5dee69fc4ffbc052009a60e17d60e36b.tar.bz2 domain-dig-3846dc2f5dee69fc4ffbc052009a60e17d60e36b.zip | |
feat(v2.5.0): add caching, request deduplication, and performance improvements
Diffstat (limited to 'LookupSnapshot.swift')
| -rw-r--r-- | LookupSnapshot.swift | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/LookupSnapshot.swift b/LookupSnapshot.swift index 3a35eff..dd1e5f4 100644 --- a/LookupSnapshot.swift +++ b/LookupSnapshot.swift @@ -39,7 +39,13 @@ struct LookupSnapshot { let portScanResults: [PortScanResult] let portScanError: String? let changeSummary: DomainChangeSummary? - let isLive: Bool + let resultSource: LookupResultSource + let cachedSections: [LookupSectionKind] + let statusMessage: String? + + var isLive: Bool { + resultSource == .live + } } extension HistoryEntry { @@ -83,7 +89,9 @@ extension HistoryEntry { portScanResults: portScanResults, portScanError: portScanError, changeSummary: changeSummary, - isLive: false + resultSource: .snapshot, + cachedSections: [], + statusMessage: nil ) } } |
