mdns

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

README

mDns Plugin

Documentation

Documentation

Index

Constants

View Source
const (
	// Name ...
	Name = "mdns"
	// FuncEntityAction ...
	FuncEntityAction = "entityAction"

	AttrInstance = "instance"
	AttrService  = "service"
	AttrDomain   = "domain"
	AttrHost     = "host"
	AttrPort     = "port"
	AttrIpAddr   = "ipAddr"
	AttrText     = "text"
	ActionScan   = "SCAN"

	DefaultService = "_workstation._tcp"
	DefaultDomain  = "local"
)

Variables

Functions

func New

func New() plugins.Pluggable

New ...

func NewActions

func NewActions() map[string]plugins.ActorAction

func NewSettings

func NewSettings() map[string]*m.Attribute

NewSettings ...

Types

type Actor

type Actor struct {
	*supervisor.BaseActor
	// contains filtered or unexported fields
}

Actor ...

func NewActor

func NewActor(entity *m.Entity,
	service plugins.Service) (actor *Actor)

NewActor ...

func (*Actor) Destroy

func (e *Actor) Destroy()

func (*Actor) SetState

func (e *Actor) SetState(params plugins.EntityStateParams) error

SetState ...

func (*Actor) Spawn

func (e *Actor) Spawn()

type Dns

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

func NewDns

func NewDns() *Dns

func (*Dns) Register

func (d *Dns) Register(instance, service, domain, ipAddr, host string, port int64, text []string)

func (*Dns) Scan

func (d *Dns) Scan(service, domain string)

func (*Dns) Shutdown

func (d *Dns) Shutdown()

Jump to

Keyboard shortcuts

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