Documentation
¶
Overview ¶
Package iface implements the network interface producer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProducerConfig ¶
type ProducerConfig struct { // Interface is the name of the network interface to monitor. Interface string `json:"interface"` // PollInterval is the interval between polling the network interface. // If not positive, it defaults to 90 seconds. PollInterval jsonhelper.Duration `json:"poll_interval"` }
ProducerConfig contains configuration options for the network interface producer.
func (*ProducerConfig) NewProducer ¶
NewProducer creates a new producer.Producer that monitors the first IPv4 and IPv6 addresses of a network interface.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source obtains the first IPv4 and IPv6 addresses from a network interface, using Go's net package. It only picks the first address of each family.
Source implements producer.Source.
Click to show internal directories.
Click to hide internal directories.