Documentation
¶
Index ¶
Constants ¶
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.
Variables ¶
View Source
var AgentDefault = Agent{
GatewayURL: "ws://localhost:9000",
}
AgentDefault is a default agent configuration.
View Source
var ServerDefault = Server{ ControlAddress: "localhost:9000", LetsEncrypt: LetsEncrypt{CacheDir: ".autocert_cache"}, }
ServerDefault is a default server configuration.
Functions ¶
Types ¶
type Agent ¶
type Agent struct { GatewayURL string `yaml:"gateway_url"` AuthKey string `yaml:"auth_key"` Forwards []Forward `yaml:"forwards"` }
Agent represnets a configuration of a reverse tunnel agent program.
type AgentAuth ¶
AgentAuth represents an agent and its access rights authorized in a reverse tunnel server program.
type LetsEncrypt ¶ added in v1.2.0
LetsEncrypt represents autocert configuration for the server.
type Server ¶
type Server struct { ControlAddress string `yaml:"control_address"` LetsEncrypt LetsEncrypt `yaml:"lets_encrypt"` Agents []AgentAuth `yaml:"agents"` }
Server represents a configuration of a reverse tunnel server program.
Click to show internal directories.
Click to hide internal directories.