mdns

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "_fxblox._tcp"
)

Variables

This section is empty.

Functions

func LoadConfig added in v1.42.0

func LoadConfig()

Load and parse the config file, then store it globally Modified LoadConfig function to use default values if config file does not exist

Types

type Config

type Config struct {
	Identity   string `yaml:"identity"`
	PoolName   string `yaml:"poolName"`
	Authorizer string `yaml:"authorizer"`
}

type MDNSServer

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

func NewZeroConfService

func NewZeroConfService(port int) (*MDNSServer, error)

func StartServer

func StartServer(ctx context.Context, port int) *MDNSServer

Add this function

func (*MDNSServer) Shutdown

func (s *MDNSServer) Shutdown()

type Meta added in v1.42.0

type Meta struct {
	BloxPeerIdString string
	PoolName         string
	Authorizer       string
	HardwareID       string
}

Jump to

Keyboard shortcuts

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