Documentation
¶
Index ¶
Constants ¶
const ExitSuccess = "success"
ExitSuccess is nmap's Finished.Exit value (xml:"exit,attr") on a run that completed without error. Exit is a plain string field, not an enum — this const is the one authoritative spelling for the client-side live/history views to compare against instead of a bare "success" literal. Mirrors scan.ExitInterrupted (scan/scan.go), the server/scan-side counterpart that stamps and compares the same contract; that is the natural place to consolidate this const too if/when server/scan and scan/ingest are touched.
Variables ¶
This section is empty.
Functions ¶
func CompleteByID ¶
CompleteByID returns scan completions with their smallened IDs as keys. The live-DB read is wrapped in CacheCompletion (once, filter many); the per-invocation Filter(c.Args...) that drops already-selected IDs is applied OUTSIDE the cache, since the cache key is static.
Types ¶
This section is empty.