wireguard

package
v0.0.0-...-365054f Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

Monitor creates/deletes the WireGuard interfaces and keeps track of them.

func NewMonitor

func NewMonitor() *Monitor

NewMonitor creates new WireGuard monitor instance.

func (*Monitor) Down

func (m *Monitor) Down(interfaceName string) error

Down requests interface deletion.

func (*Monitor) Stats

func (m *Monitor) Stats(interfaceName string) (wgcfg.Stats, error)

Stats requests interface statistics.

func (*Monitor) Up

func (m *Monitor) Up(cfg wgcfg.DeviceConfig, uid string) (string, error)

Up requests interface creation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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