Documentation
¶
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) CompletedRoots() (map[string]bool, error)
- func (s *Store) DeleteHosts(root string, hosts []string) error
- func (s *Store) DistinctRoots() ([]string, error)
- func (s *Store) FinishScan(id int64) error
- func (s *Store) GetScansSummary() ([]types.RootInfo, error)
- func (s *Store) QueryHostRefs(root string) ([]types.HostRef, error)
- func (s *Store) QueryHosts(f types.Filter) ([]types.Host, error)
- func (s *Store) RawQuery(q string) ([]string, [][]string, error)
- func (s *Store) ResetDNS(root string) error
- func (s *Store) ResetProbe(root string) error
- func (s *Store) SaveDNS(host string, d types.DNSResult) error
- func (s *Store) SaveHostRef(host, referrer, source string) error
- func (s *Store) SaveProbe(host string, p types.Probe) error
- func (s *Store) SetScanRounds(id int64, rounds int) error
- func (s *Store) StartScan(root, opts string) (int64, error)
- func (s *Store) UnprobedScope(root string) (bool, error)
- func (s *Store) UpdateAuth(host, authType, authURL string) error
- func (s *Store) UpsertContentHost(scan int64, root, host string, depth int, referrer string) error
- func (s *Store) UpsertHost(scan int64, root, host string, depth int, sources []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store handles persistence of scan results and hosts in SQLite.
func (*Store) CompletedRoots ¶ added in v1.4.0
CompletedRoots returns the set of root domains whose latest scan finished.
func (*Store) DeleteHosts ¶ added in v1.3.0
DeleteHosts removes wildcard-polluted subdomains (never deleting the root apex) and any associated host_refs.
func (*Store) DistinctRoots ¶ added in v1.4.0
DistinctRoots returns all distinct root domains present in the hosts table.
func (*Store) FinishScan ¶
FinishScan marks a scan run as completed.
func (*Store) GetScansSummary ¶
GetScansSummary returns a summary of scans grouped by root domain.
func (*Store) QueryHostRefs ¶ added in v1.2.0
QueryHostRefs returns content-derived host references, optionally scoped to a root domain.
func (*Store) QueryHosts ¶
QueryHosts fetches hosts matching the given filter.
func (*Store) ResetDNS ¶ added in v1.3.0
ResetDNS clears previous DNS resolution columns for a root domain before a DNS-only refresh.
func (*Store) ResetProbe ¶
ResetProbe clears last scan's DNS and probe data so hosts that went down show as dead.
func (*Store) SaveDNS ¶ added in v1.3.0
SaveDNS updates DNS records (IPs, CNAME chain, CDN, and IP-range WAF) for a host.
func (*Store) SaveHostRef ¶ added in v1.2.0
SaveHostRef records or updates a cross-host reference extracted from HTTP content.
func (*Store) SaveProbe ¶
SaveProbe updates probe results for a host while preserving DNS fields when httpx leaves them blank.
func (*Store) SetScanRounds ¶ added in v1.4.0
SetScanRounds records the number of completed enumeration rounds for a scan.
func (*Store) UnprobedScope ¶ added in v1.4.0
UnprobedScope reports whether root (or the whole database when empty) has stored hosts that have not yet been through HTTP probing.
func (*Store) UpdateAuth ¶ added in v1.1.0
UpdateAuth updates the asset role classification and auth URL for a host.
func (*Store) UpsertContentHost ¶ added in v1.2.0
UpsertContentHost records a content-derived host without overwriting non-empty passive sources.