Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAddressPoller ¶
type IPAddressPoller struct {
// contains filtered or unexported fields
}
IPAddressPoller is a poller used to check the value of the current public internet IP address.
func NewIPAddressPoller ¶
func NewIPAddressPoller(pollInterval time.Duration) *IPAddressPoller
func (*IPAddressPoller) Channel ¶
func (p *IPAddressPoller) Channel() <-chan string
Channel() returns a channel that receives data whenever an IP address value is received.
func (*IPAddressPoller) Run ¶
func (i *IPAddressPoller) Run(stopCh <-chan struct{}) error
Run() starts the main loop for the poller.
Click to show internal directories.
Click to hide internal directories.