mdns

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "name"
	Service     = "service"
	Domain      = "domain"
	Port        = "port"
	IPv6        = "ipv6"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

type Discovery struct {
	// contains filtered or unexported fields
}

Discovery defines the mDNS discovery provider

func NewDiscovery added in v0.5.1

func NewDiscovery() *Discovery

NewDiscovery returns an instance of the mDNS discovery provider

func (*Discovery) Close added in v1.1.0

func (d *Discovery) Close() error

Close closes the provider

func (*Discovery) Deregister added in v0.5.1

func (d *Discovery) Deregister() error

Deregister removes this node from a service discovery directory.

func (*Discovery) DiscoverPeers added in v0.5.1

func (d *Discovery) DiscoverPeers() ([]string, error)

DiscoverPeers returns a list of known nodes.

func (*Discovery) ID

func (d *Discovery) ID() string

ID returns the discovery provider identifier

func (*Discovery) Initialize added in v0.5.1

func (d *Discovery) Initialize() error

Initialize the discovery provider

func (*Discovery) Register added in v0.5.1

func (d *Discovery) Register() error

Register registers this node to a service discovery directory.

func (*Discovery) SetConfig added in v0.5.1

func (d *Discovery) SetConfig(config discovery.Config) error

SetConfig registers the underlying discovery configuration

Jump to

Keyboard shortcuts

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