wireguard

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 13 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 (s *WireGuard) AddPeer(data []byte) (result []byte, err error)

func (*WireGuard) HasPeer added in v0.5.1

func (s *WireGuard) HasPeer(data []byte) bool

func (*WireGuard) Info

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

func (*WireGuard) Init

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

func (*WireGuard) PeerCount added in v0.5.1

func (s *WireGuard) PeerCount() int

func (*WireGuard) Peers

func (s *WireGuard) Peers() (items []types.Peer, err error)

func (*WireGuard) RemovePeer

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

func (*WireGuard) Start

func (s *WireGuard) Start() error

func (*WireGuard) Stop

func (s *WireGuard) Stop() error

func (*WireGuard) Type

func (s *WireGuard) Type() uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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