list

package
v2.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 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 {
	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"`
	Up       bool   `json:"up" yaml:"up" table:"UP"`
}

func Devices

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

Devices lists all of the devices on the local network.

type Kind

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