wg

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AUTH_KEY = "wg"
)

Variables

View Source
var (
	InvalidAuthKey        = errors.New("Invalid Authentication Key")
	InvalidTokenFormatErr = errors.New("Invalid token format")
	MissingKeyErr         = errors.New("No Authentication Key provided")
)

Functions

func InitServer

func InitServer(conf *config.Config) (*wireguard, error)

func SecureConn

func SecureConn(conf config.CertConfig) ([]grpc.ServerOption, error)

SecureConn enables communication over secure channel

func WireGuardCmd

func WireGuardCmd(cmd string) ([]byte, error)

Types

type Authenticator

type Authenticator interface {
	AuthenticateContext(context.Context) error
}

func NewAuthenticator

func NewAuthenticator(Skey, AKey string) Authenticator

type Interface

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

type Peer

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

Jump to

Keyboard shortcuts

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