client

package
v0.0.0-...-d646b5f Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {

	// Error channel receives any kind of routine errors
	Error chan error
	// contains filtered or unexported fields
}

func NewClient

func NewClient(conf Configuration, verifier *govpn.Verifier, termSignal chan os.Signal) *Client

func (*Client) MainCycle

func (c *Client) MainCycle()

type Configuration

type Configuration struct {
	PrivateKey          *[ed25519.PrivateKeySize]byte
	Peer                *govpn.PeerConf
	Protocol            Protocol
	InterfaceName       string
	ProxyAddress        string
	ProxyAuthentication string
	RemoteAddress       string
	UpPath              string
	DownPath            string
	StatsAddress        string
	NoReconnect         bool
	MTU                 int
}

func (*Configuration) Validate

func (c *Configuration) Validate() error

type Protocol

type Protocol int
const (
	ProtocolUDP Protocol = iota
	ProtocolTCP
)

Jump to

Keyboard shortcuts

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