list

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: MIT Imports: 9 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 {
	Kind     Kind   `json:"kind" table:"KIND"`
	Hostname string `json:"hostname" table:"HOSTNAME"`
	LocalIP  net.IP `json:"local_ip" table:"LOCAL_IP"`
	RemoteIP net.IP `json:"remote_ip,omitempty" table:"REMOTE_IP"`
}

func Devices added in v1.0.0

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

Devices lists all of the devices on the local network.

type Kind added in v1.0.0

type Kind string
const (
	DeviceKindUnknown Kind = "unknown"
	DeviceKindRouter  Kind = "router"
	DeviceKindCurrent Kind = "current-device"
	DeviceKindPeer    Kind = "peer"
)

Jump to

Keyboard shortcuts

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