Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poller ¶
type Poller struct {
// contains filtered or unexported fields
}
Poller polls the source periodically and broadcasts the received IP address message to subscribers.
Poller implements producer.Source and producer.Producer.
func (*Poller) Run ¶
Run starts the polling process. It logs errors and stops when the context is canceled.
Run implements producer.Producer.Run.
func (*Poller) Snapshot ¶
Snapshot exposes the inner source's Snapshot method.
Snapshot implements producer.Source.Snapshot.
Click to show internal directories.
Click to hide internal directories.