Discover Packages
github.com/viddrobnic/sparovec
config
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jan 8, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type API struct {
ListenAddress string `mapstructure:"listen_address"`
Port int `mapstructure:"port"`
CorsAllowedOrigins []string `mapstructure:"cors_allowed_origins"`
}
type Auth struct {
SessionTtl int `mapstructure:"session_ttl"`
SigningKey string `mapstructure:"signing_key"`
}
type Config struct {
API API `mapstructure:"api"`
Auth Auth `mapstructure:"auth"`
Database Database `mapstructure:"database"`
Observability Observability `mapstructure:"observability"`
}
type Database struct {
Location string `mapstructure:"location"`
}
type Observability struct {
WriteToFile bool `mapstructure:"write_to_file"`
WriteToConsole bool `mapstructure:"write_to_console"`
Path string `mapstructure:"path"`
MaxSize int `mapstructure:"max_size"`
MaxBackups int `mapstructure:"max_backups"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.