Documentation ¶
Index ¶
- type DnsStorage
- func (d *DnsStorage) AddHost(host Host)
- func (d *DnsStorage) FindHostAddresses(name string) (addrs []net.IP)
- func (d *DnsStorage) FindReverseHost(address string) (hosts []string)
- func (d *DnsStorage) GetHosts() (hosts Hosts)
- func (d *DnsStorage) MainRoutine()
- func (d *DnsStorage) RemoveHost(id string)
- func (d *DnsStorage) Subscribe() (s *Subscription)
- func (d *DnsStorage) Unsubscribe(s *Subscription)
- type Host
- type Hosts
- type Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DnsStorage ¶
type DnsStorage struct {
// contains filtered or unexported fields
}
func NewDnsStorage ¶
func NewDnsStorage() (dnsStorage *DnsStorage)
func (*DnsStorage) AddHost ¶
func (d *DnsStorage) AddHost(host Host)
func (*DnsStorage) FindHostAddresses ¶
func (d *DnsStorage) FindHostAddresses(name string) (addrs []net.IP)
func (*DnsStorage) FindReverseHost ¶
func (d *DnsStorage) FindReverseHost(address string) (hosts []string)
func (*DnsStorage) GetHosts ¶
func (d *DnsStorage) GetHosts() (hosts Hosts)
func (*DnsStorage) MainRoutine ¶
func (d *DnsStorage) MainRoutine()
func (*DnsStorage) RemoveHost ¶
func (d *DnsStorage) RemoveHost(id string)
func (*DnsStorage) Subscribe ¶
func (d *DnsStorage) Subscribe() (s *Subscription)
func (*DnsStorage) Unsubscribe ¶
func (d *DnsStorage) Unsubscribe(s *Subscription)
type Subscription ¶
Click to show internal directories.
Click to hide internal directories.