mywgserver

package
v0.0.0-...-2159e90 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WGServer

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

func NewWGServer

func NewWGServer(endpointAddressPort string, cidr string, logger *device.Logger, errs chan error) *WGServer

func (*WGServer) AddClientPeer

func (s *WGServer) AddClientPeer(subdomain string) []byte

func (*WGServer) GetPeerAddressFor

func (s *WGServer) GetPeerAddressFor(subdomain string) net.IP

func (*WGServer) StartServer

func (s *WGServer) StartServer() chan struct{}

func (*WGServer) StopServer

func (s *WGServer) StopServer()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳