Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendConfig ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages client connections to the server.
type Config ¶
type Config struct {
ServerAddr string `yaml:"server_addr"`
Backend map[string]*BackendConfig `yaml:"backend"`
}
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 LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.