Documentation ¶
Index ¶
Constants ¶
View Source
const ( // default multicast group used by announced MulticastAddressDefault = "ff05:0:0:0:0:0:2:1001" // default udp port used by announced PortDefault = 1001 // maximum receivable size MaxDataGramSize = 8192 )
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 ¶
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"` CustomFields []CustomFieldConfig `toml:"custom_field"` }
func (*Config) SitesDomains ¶
type CustomFieldConfig ¶ added in v1.2.1
type InterfaceConfig ¶
type SiteConfig ¶
type SiteConfig struct {
Domains []string `toml:"domains"`
}
Click to show internal directories.
Click to hide internal directories.