wireguard

package
v0.0.179 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 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

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

type WG struct {
	netlink.LinkAttrs
}

func (*WG) Attrs

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

func (*WG) Type

func (wglink *WG) Type() string

Jump to

Keyboard shortcuts

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