Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Service specifies the service name ServiceName string // Service specifies the service type Service string // Specifies the service domain Domain string // Port specifies the port the service is listening to Port int // IPv6 states whether to fetch ipv6 address instead of ipv4 IPv6 *bool }
Config represents the mDNS provider discoConfig
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery defines the mDNS discovery provider
func NewDiscovery ¶
NewDiscovery returns an instance of the mDNS discovery provider
func (*Discovery) Deregister ¶
Deregister removes this node from a service discovery directory.
func (*Discovery) DiscoverPeers ¶
DiscoverPeers returns a list of known nodes.
func (*Discovery) Initialize ¶
Initialize the discovery provider
Click to show internal directories.
Click to hide internal directories.