wireguard

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface struct {
	Name       string
	PublicKey  string
	ListenPort int
	Peers      []*Peer
}

func ParseWg

func ParseWg(data []byte) (interfaces []*Interface)

type Peer

type Peer struct {
	PublicKey       string
	Endpoint        string
	Allowed         []*net.IPNet
	LatestHandshake time.Duration
	Transfer        Transfer
	Keepalive       time.Duration
}

type Transfer

type Transfer struct {
	Received size.ByteSize
	Sent     size.ByteSize
}

Jump to

Keyboard shortcuts

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