Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discoverer ¶
type Discoverer struct { Table map[string]*ServiceEntry Storage string // contains filtered or unexported fields }
func New ¶
func New(location string) *Discoverer
func (*Discoverer) Flush ¶
func (dv *Discoverer) Flush()
type ServiceEntry ¶
type ServiceEntry struct { Name string `json:"name,omitempty"` AddrV4 []net.IP `json:"ip4,omitempty"` AddrV6 []net.IP `json:"ip6,omitempty"` Port int `json:"port,omitempty"` TimeStamp time.Time `json:"timestamp,omitempty"` Text []string `json:"text,omitempty"` TTL uint32 `json:"TTL,omitempty"` //nolint:tagliatelle Service string `json:"service,omitempty"` }
Click to show internal directories.
Click to hide internal directories.