Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Server struct {
Port string `yaml:"port" envconfig:"SERVER_PORT"`
Host string `yaml:"host" envconfig:"SERVER_HOST"`
} `yaml:"server"`
Instance struct {
Name string `yaml:"name" envconfig:"INSTANCE_NAME"`
Theme string `yaml:"theme" envconfig:"INSTANCE_THEME"`
Frontends []struct {
Name string `yaml:"name"`
Regex string `yaml:"regex"`
Alternative string `yaml:"alternative"`
} `yaml:"frontends"`
Js struct {
Enabled bool `yaml:"enabled" envconfig:"INSTANCE_JS_ENABLED"`
}
} `yaml:"instance"`
Cache struct {
Enabled bool `yaml:"enabled" envconfig:"CACHE_ENABLED"`
Duration int `yaml:"duration" envconfig:"CACHE_DURATION"`
} `yaml:"cache"`
Log struct {
Level string `yaml:"level" envconfig:"LOG_LEVEL"`
} `yaml:"log"`
}
var Cfg Config
Click to show internal directories.
Click to hide internal directories.