Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigByField ¶
Types ¶
type Config ¶
type Config struct { Logging struct { Level string `yaml:"level"` Path string `yaml:"path"` MaxSize string `yaml:"max_size"` MaxAge string `yaml:"max_age"` MaxBackups int `yaml:"max_backups"` } `yaml:"logging"` Store struct { MaxKeyAge string `yaml:"max_key_age"` MaxSize string `yaml:"max_size"` MaxAllowedEntries int `yaml:"max_allowed_entries"` } `yaml:"state"` Server struct { Adress string `yaml:"adress"` Port int `yaml:"port"` SSL bool `yaml:"ssl"` } `yaml:"server"` Persistence struct { Path string `yaml:"path"` SnapshotInterval int `yaml:"snapshot_interval"` Enabled bool `yaml:"enabled"` AppendOnly bool `yaml:"append_only"` } `yaml:"persistence"` }
func LoadConfig ¶
func LoadConfig() *Config
Click to show internal directories.
Click to hide internal directories.