entity

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicKey

type PublicKey struct {
	Key     ssh.PublicKey
	Comment string
}

type WireGuardClient

type WireGuardClient struct {
	Name                string
	Address             net.IPNet
	PrivateKey          wgtypes.Key
	PublicKey           wgtypes.Key
	DNS                 []net.IP
	AllowedIPs          []net.IPNet
	PersistentKeepalive null.Int
}

type WireGuardClientInfo

type WireGuardClientInfo struct {
	Config wgtypes.ClientConfig
	Stats  null.Value[WireGuardPeerStats]
}

type WireGuardPeerStats

type WireGuardPeerStats struct {
	Received        uint64
	Sent            uint64
	LatestHandshake null.Time
}

type WireGuardServerConfig

type WireGuardServerConfig struct {
	PrivateKey wgtypes.Key
}

Jump to

Keyboard shortcuts

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