discovery

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Name  string `json:"name"`
	IP    string `json:"ip"`
	Port  int    `json:"port"`
	Model string `json:"model"`
}

Device represents a discovered LaMetric device.

func Discover

func Discover(ctx context.Context, timeout time.Duration) ([]Device, error)

Discover finds LaMetric devices on the local network. Runs mDNS and SSDP in parallel, deduplicates by IP.

func DiscoverMDNS

func DiscoverMDNS(ctx context.Context, timeout time.Duration) ([]Device, error)

DiscoverMDNS finds LaMetric devices via mDNS.

func DiscoverSSDP

func DiscoverSSDP(ctx context.Context, timeout time.Duration) ([]Device, error)

DiscoverSSDP finds LaMetric devices via UPnP/SSDP.

func (Device) String

func (d Device) String() string

String returns a human-readable representation of the device.

Jump to

Keyboard shortcuts

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