Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector for a specificle respond messages
func NewCollector ¶
func NewCollector(db database.Connection, nodes *runtime.Nodes, sitesDomains map[string][]string, ifaces []InterfaceConfig) *Collector
NewCollector creates a Collector struct
func (*Collector) SendPacket ¶
SendPacket sends a UDP request to the given unicast or multicast address on the first UDP socket
type Config ¶
type Config struct { Enable bool `toml:"enable"` Synchronize duration.Duration `toml:"synchronize"` Interfaces []InterfaceConfig `toml:"interfaces"` Sites map[string]SiteConfig `toml:"sites"` CollectInterval duration.Duration `toml:"collect_interval"` }
func (*Config) SitesDomains ¶
type InterfaceConfig ¶
type SiteConfig ¶
type SiteConfig struct {
Domains []string `toml:"domains"`
}