package
Version:
v0.0.0-...-c9ce307
Opens a new window with list of versions in this module.
Published: Nov 22, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Configuration struct {
App struct {
Name string `yaml:"name"`
Version string `yaml:"version"`
} `yaml:"app"`
Cache struct {
Host string `yaml:"host"`
Port uint16 `yaml:"port"`
} `yaml:"cache"`
Server `yaml:"server"`
Session `yaml:"session"`
}
type Server struct {
BaseURL string `yaml:"base_url"`
Port uint16 `yaml:"port"`
AllowedOrigins string `yaml:"origins"`
RPM uint16 `yaml:"rpm"`
Metrics struct {
Enabled bool `yaml:"enabled"`
Route string `yaml:"route"`
User string `yaml:"user"`
Password string `yaml:"password"`
} `yaml:"metrics"`
}
type Session struct {
MaxUsers int `yaml:"max_users" json:"maxUsers"`
ReadOnly bool `yaml:"read_only" json:"readOnly"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.