wireguard

package
v0.0.166 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateWireguardInterfaceName added in v0.0.114

func GenerateWireguardInterfaceName(peer models.Tunnel) string

Types

type Manager

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

func NewManager

func NewManager(db *gorm.DB) (*Manager, error)

func (*Manager) AddPeer

func (m *Manager) AddPeer(peer models.Tunnel) error

func (*Manager) RemovePeer

func (m *Manager) RemovePeer(peer models.Tunnel) error

func (*Manager) Run

func (m *Manager) Run() error

func (*Manager) Stop

func (m *Manager) Stop() error

type WG added in v0.0.115

type WG struct {
	netlink.LinkAttrs
}

func (*WG) Attrs added in v0.0.115

func (wglink *WG) Attrs() *netlink.LinkAttrs

func (*WG) Type added in v0.0.115

func (wglink *WG) Type() string

Jump to

Keyboard shortcuts

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