internal

package
v0.0.0-...-916cb58 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: EUPL-1.2 Imports: 5 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 {
	Ip        net.IP
	Name      string
	PublicKey string
}

func GetDeviceInfo

func GetDeviceInfo(client *wgctrl.Client, deviceName string) (*Device, error)

type Peer

type Peer struct {
	PublicKey         string
	AllowedIps        []net.IPNet
	LastHandshakeTime time.Time
}

func GetPeers

func GetPeers(client *wgctrl.Client, deviceName string) []Peer

Jump to

Keyboard shortcuts

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