rpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS = iota
	CONFIG
	CONNECT
	DISCONNECT
	RECONNECT
	INTERFACE
	ABORT
	STAT
)

Variables

View Source
var (
	Clients []*jsonrpc2.Conn
)

Functions

func Connect

func Connect(ctxs ...*lib.VPNContext) error

Connect requires the frontend to populate auth.Prof first; providing base.Interface is recommended.

func DisConnect

func DisConnect(ctxs ...*lib.VPNContext)

DisConnect handles intentional disconnects such as user actions or Ctrl+C, not network or TUN failures.

func Setup

func Setup()

func SetupTunnel

func SetupTunnel(reconnect bool, ctxs ...*lib.VPNContext) error

SetupTunnel is only meant for short reconnects; reconnecting after long OS sleep may fail.

Types

This section is empty.

Jump to

Keyboard shortcuts

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