Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSRecordWatcher ¶
type DNSRecordWatcher interface { // StartWatching starts DNS watching. StartWatching() error // WaitAddressesChanges waits for the address information has changed, and this returned channel provides the changed value. WaitAddressesChanges() <-chan []string }
DNSRecordWatcher the methods for watcher of a DNS record.
type DefaultDNSRecordWatcher ¶
type DefaultDNSRecordWatcher struct {
// contains filtered or unexported fields
}
DefaultDNSRecordWatcher is a default implementation of DNSRecordWatcher.
func NewDefaultDNSRecordWatcher ¶
func NewDefaultDNSRecordWatcher(lookupInterval time.Duration, hostName string) *DefaultDNSRecordWatcher
NewDefaultDNSRecordWatcher creates an instance of the DefaultDNSRecordWatcher.
func (*DefaultDNSRecordWatcher) StartWatching ¶
func (w *DefaultDNSRecordWatcher) StartWatching() error
See DNSRecordWatcher.StartWatching.
func (*DefaultDNSRecordWatcher) WaitAddressesChanges ¶
func (w *DefaultDNSRecordWatcher) WaitAddressesChanges() <-chan []string
See DNSRecordWatcher.WaitAddressesChanges
type DefaultNetworkInterfaceAddressReloader ¶
type DefaultNetworkInterfaceAddressReloader struct {
// contains filtered or unexported fields
}
DefaultNetworkInterfaceAddressReloader is a default implementation of NetworkInterfaceAddressReloader.
func NewDefaultNetworkInterfaceAddressReloader ¶
func NewDefaultNetworkInterfaceAddressReloader(deviceName string) (*DefaultNetworkInterfaceAddressReloader, error)
NewDefaultNetworkInterfaceAddressReloader makes an instance of DefaultDNSRecordWatcher.
func (*DefaultNetworkInterfaceAddressReloader) Reload ¶
func (r *DefaultNetworkInterfaceAddressReloader) Reload(addresses []string) error
See NetworkInterfaceAddressReloader.Reload.
type NetworkInterfaceAddressReloader ¶
type NetworkInterfaceAddressReloader interface { // Reload reloads address information by given addresses. Reload(addresses []string) error }
NetworkInterfaceAddressReloader defines the methods to reload the interface's addresses.
Click to show internal directories.
Click to hide internal directories.