wireguard

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfoLen = 2 + 32
)

Variables

This section is empty.

Functions

func NewWireGuard

func NewWireGuard(pool *wgtypes.IPPool) types.Service

Types

type WireGuard

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

func (*WireGuard) AddPeer

func (w *WireGuard) AddPeer(data []byte) (result []byte, err error)

func (*WireGuard) Info

func (w *WireGuard) Info() []byte

func (*WireGuard) Init

func (w *WireGuard) Init(home string) (err error)

func (*WireGuard) Peers

func (w *WireGuard) Peers() ([]types.Peer, error)

func (*WireGuard) PeersCount

func (w *WireGuard) PeersCount() int

func (*WireGuard) RemovePeer

func (w *WireGuard) RemovePeer(data []byte) error

func (*WireGuard) Start

func (w *WireGuard) Start() error

func (*WireGuard) Stop

func (w *WireGuard) Stop() error

func (*WireGuard) Type

func (w *WireGuard) Type() uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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