Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendConfig ¶
type BackendConfig struct {
Host string `yaml:"host"`
Port uint32 `yaml:"port"`
Subdomain string `yaml:"subdomain"`
Protocol protocol.Protocol `yaml:"protocol"`
AllowedPaths []string `yaml:"allowed_paths"`
}
func (*BackendConfig) IsPathAllowed ¶ added in v0.0.2
func (b *BackendConfig) IsPathAllowed(path string) bool
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"`
}
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.