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
|
|
Click to show internal directories.
Click to hide internal directories.