mdns

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(ctx context.Context) (chan dns.Msg, error)

func Query

func Query(msg dns.Msg) error

Query will emit dns messages to the mDNS multicast addresses it is up to the caller to listen for anwsers beforhand.

Types

type Browser

type Browser struct {
	Question dns.Question
}

func (*Browser) Run

func (b *Browser) Run(ctx context.Context) (chan []*Target, error)

type ErrListen

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

func (*ErrListen) Error

func (e *ErrListen) Error() string

type Target

type Target struct {
	Hostname string

	Marked bool
}

func (*Target) Description

func (t *Target) Description() string

func (*Target) FilterValue

func (t *Target) FilterValue() string

func (*Target) Title

func (t *Target) Title() string

Jump to

Keyboard shortcuts

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