Documentation ¶
Overview ¶
Package server implements the collection of detection events into a centralized database with an HTTP API.
The difficulty in supporting both full and incremental scan modes is that we do not have a reliable signal for the disappearance of a detection. To maintain flexibility, the data model stores every raw detection entry and synthesizes path-level information from it, and we support an external method to explicitly acknowledge (resolve) entries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { SiteInfoPath string `yaml:"site_info_path"` NotifyAddr string `yaml:"notify_addr"` Mail *mail.Config `yaml:"mail"` }
Config for a Server instance.
type RawDetection ¶
RawDetection is a detection event as stored in the database: a yarascan.Detection with additional site and state information.
Click to show internal directories.
Click to hide internal directories.