config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCa = `` /* 1299-byte string literal not displayed */

	DefaultAgentCert = `` /* 1384-byte string literal not displayed */

	DefaultAgentKey = `` /* 1680-byte string literal not displayed */

	DefaultServerCert = `` /* 1542-byte string literal not displayed */

	DefaultServerKey = `` /* 1680-byte string literal not displayed */

	DefaultAgentsFile = `
agents:
  - name: test001
    auth_key: 3b02fe02-2552-78ae-ed40-d4df03fc21c9
    approved_cn: ezvpn-agent
`
)
View Source
const AgentCancelWait = 3 * time.Second

AgentCancelWait is the timeout for agents to cancel

View Source
const AgentMaxRetry = 30

AgentMaxRetry is the max retry times for a failed agent.Start()

View Source
const AgentRetryInterval = 15 * time.Second

AgentRetryInterval is the timeout for a failed agent.Start()

View Source
const BufferSize = 1500

BufferSize is the max size of a single message transferred via a tunnel. This should be sufficiently large to prevent fragmentation.

View Source
const GoroutinePoolSize = 10000

GoroutinePoolSize is the size for initializing an ants.Pool.

View Source
const NetDialTimeout = 5 * time.Second

NetDialTimeout is the timeout for agents connecting to the destination

View Source
const SmuxSessionKeepAliveInterval = 5 * time.Second

SmuxSessionKeepAliveInterval is how often a mux session peer to send a NOP command to the remote

View Source
const SmuxSessionKeepAliveTimeout = 10 * time.Second

SmuxSessionKeepAliveTimeout is how long a mux session will be closed if no data has arrived

View Source
const WsCloseTimeout = 3 * time.Second

WsCloseTimeout is the timeout of a WebSocket close message.

View Source
const WsHandshakeTimeout = 10 * time.Second

WsHandshakeTimeout is the timeout for agents connecting to tunnel-servers

Variables

View Source
var (
	BuildTime   string
	BuildCommit string
	BuildBranch string
	Version     = "0.3.0"
)

Functions

func FullVersion

func FullVersion() string

func MajorVersion

func MajorVersion(v string) int64

func MinorVersion

func MinorVersion(v string) int64

func ProtoVersion

func ProtoVersion(v string) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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