Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertConfig ¶
type Config ¶
type Config struct {
// Domain base for HTTP routing (e.g., example.com)
Domain string `yaml:"domain"`
// Optional shared token required from clients for registration/auth
Token string `yaml:"token"`
ServerPort int `yaml:"server_port"`
QuicPort int `yaml:"quic_port"`
Cert *CertConfig `yaml:"cert"`
}
Config represents the configuration for the client. It contains the server address and a map of backend configurations. Each backend configuration includes the host, port, subdomain, and protocol. The server address is the address of the gunnel server.
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) LoadConfig ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) StartHTTPServer ¶
Click to show internal directories.
Click to hide internal directories.