engine

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthState

type AuthState struct {
	Conn         *tls.Conn
	BufR         *bufio.Reader
	WebVPNCookie string
	ReqHeaders   map[string]string
}

func NewAuthState

func NewAuthState() *AuthState

type Context

type Context struct {
	Cfg            *engineconfig.ClientConfig
	LocalInterface *engineconfig.Interface
	Logger         *engineconfig.Logger
	Profile        *Profile
	Session        *enginesession.Session
	Auth           *AuthState
	RoutingState   any
	TLSCert        *tls.Certificate
	RootCAs        *x509.CertPool
}

func NewContext

func NewContext() *Context

type Profile

type Profile struct {
	Host      string `json:"host"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	Group     string `json:"group"`
	SecretKey string `json:"secret"`

	Initialized bool
	AppVersion  string // for report to server in xml

	HostWithPort string
	Scheme       string
	BasePath     string
	AuthPath     string

	TunnelGroup string
	AuthMethod  string
	GroupAlias  string
	ConfigHash  string
	GroupAccess string
	DeviceID    string
}

func NewProfile

func NewProfile() *Profile

Directories

Path Synopsis
Package device copies the interface shape from wireguard-go's tun package.
Package device copies the interface shape from wireguard-go's tun package.
rwcancel
Package rwcancel implements cancelable read/write operations on a file descriptor.
Package rwcancel implements cancelable read/write operations on a file descriptor.
platform

Jump to

Keyboard shortcuts

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