Documentation
¶
Index ¶
Constants ¶
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 ` )
const AgentCancelWait = 3 * time.Second
AgentCancelWait is the timeout for agents to cancel
const AgentMaxRetry = 30
AgentMaxRetry is the max retry times for a failed agent.Start()
const AgentRetryInterval = 15 * time.Second
AgentRetryInterval is the timeout for a failed agent.Start()
const BufferSize = 1500
BufferSize is the max size of a single message transferred via a tunnel. This should be sufficiently large to prevent fragmentation.
const GoroutinePoolSize = 10000
GoroutinePoolSize is the size for initializing an ants.Pool.
const NetDialTimeout = 5 * time.Second
NetDialTimeout is the timeout for agents connecting to the destination
const SmuxSessionKeepAliveInterval = 5 * time.Second
SmuxSessionKeepAliveInterval is how often a mux session peer to send a NOP command to the remote
const SmuxSessionKeepAliveTimeout = 10 * time.Second
SmuxSessionKeepAliveTimeout is how long a mux session will be closed if no data has arrived
const WsCloseTimeout = 3 * time.Second
WsCloseTimeout is the timeout of a WebSocket close message.
const WsHandshakeTimeout = 10 * time.Second
WsHandshakeTimeout is the timeout for agents connecting to tunnel-servers
Variables ¶
var ( BuildTime string BuildCommit string BuildBranch string Version = "0.3.0" )
Functions ¶
func FullVersion ¶
func FullVersion() string
func MajorVersion ¶
func MinorVersion ¶
func ProtoVersion ¶
Types ¶
This section is empty.