list

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device added in v1.0.0

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

func Devices added in v1.0.0

func Devices(ctx context.Context) ([]*Device, error)

Devices lists all of the devices on the local network.

func (*Device) Addr added in v1.0.0

func (d *Device) Addr() string

func (*Device) Fields added in v1.0.0

func (d *Device) Fields() []slog.Field

func (*Device) Kind added in v1.0.0

func (d *Device) Kind() Kind

type Kind added in v1.0.0

type Kind string
const (
	DeviceKindUnknown Kind = "unknown"
	DeviceKindRouter  Kind = "router"
	DeviceKindCurrent Kind = "you"
	DeviceKindPeer    Kind = "peer"
)

Jump to

Keyboard shortcuts

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