Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Query(params *QueryParam) error Lookup(service string, entries chan<- *ServiceEntry) error }
Client ...
type MulticastDNS ¶
type MulticastDNS struct {
// contains filtered or unexported fields
}
MulticastDNS ...
func New ¶
func New(cfg *config.Config, opts ...OptionConfigFunc) (mdns *MulticastDNS, err error)
New ...
type OptionConfig ¶
type OptionConfig struct { NetInterface *net.Interface IPv4Addr *net.UDPAddr IPv6Addr *net.UDPAddr WildcardAddrIPv4 *net.UDPAddr WildcardAddrIPv6 *net.UDPAddr LogEmptyResponses bool HostName string CustomPort int Port uint16 TTL uint32 TXT []string IPs []net.IP Instance string Service string Enum string Domain string // contains filtered or unexported fields }
OptionConfig ...
func (*OptionConfig) RegisterLocalIP ¶
func (cfg *OptionConfig) RegisterLocalIP(c *config.Config)
RegisterLocalIP ...
type QueryParam ¶
type QueryParam struct { Service string // Service to lookup Domain string // Lookup domain, default "local" Type uint16 // Lookup type, defaults to dns.TypePTR Context context.Context // Context Timeout time.Duration // Lookup timeout, default 1 second. Ignored if Context is provided Interface *net.Interface // Multicast interface to use Entries chan<- *ServiceEntry // Entries Channel WantUnicastResponse bool // Unicast response desired, as per 5.4 in RFC }
QueryParam is used to customize how a Lookup is performed
func DefaultParams ¶
func DefaultParams(service string) *QueryParam
DefaultParams is used to return a default set of QueryParam's
Click to show internal directories.
Click to hide internal directories.