internal

package
v0.0.0-...-369c311 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2021 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL