vpn

package
v0.4.27 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const ZROK_VPN_MTU = 16 * 1024

Variables

This section is empty.

Functions

func DefaultTarget

func DefaultTarget() string

Types

type Backend

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

func NewBackend

func NewBackend(cfg *BackendConfig) (*Backend, error)

func (*Backend) Run

func (b *Backend) Run() error

type BackendConfig

type BackendConfig struct {
	IdentityPath    string
	EndpointAddress string
	ShrToken        string
	RequestsChan    chan *endpoints.Request
}

type ClientConfig

type ClientConfig struct {
	Greeting   string
	CIDR       string
	CIDR6      string
	ServerIP   string
	ServerIPv6 string
	Routes     []string
	MTU        int
}

type Frontend

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

func NewFrontend

func NewFrontend(cfg *FrontendConfig) (*Frontend, error)

func (*Frontend) Run

func (f *Frontend) Run() error

type FrontendConfig

type FrontendConfig struct {
	IdentityName string
	ShrToken     string
	RequestsChan chan *endpoints.Request
}

Jump to

Keyboard shortcuts

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