package
Version:
v1.3.2
Opens a new window with list of versions in this module.
Published: Feb 13, 2026
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
MinConnectInterval = 5 * time.Second
MaxConnectInterval = 300 * time.Second
SmuxKeepAliveInterval = 10 * time.Second
SmuxKeepAliveTimeout = 30 * time.Second
SmuxMaxFrameSize = 32768
SmuxMaxReceiveBuffer = 4194304
SmuxMaxStreamBuffer = 65536
)
GetSmuxConfig returns optimized smux configuration for tunnel connections.
type Config struct {
Server struct {
URL string `ini:"url"`
ID string `ini:"id"`
Key string `ini:"key"`
} `ini:"server"`
SSL struct {
Verify bool `ini:"verify"`
CaCert string `ini:"ca_cert"`
} `ini:"ssl"`
Logging struct {
Debug bool `ini:"debug"`
} `ini:"logging"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.