Documentation
¶
Overview ¶
Package config holds configuration stuff to configure the things
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultConfigFilePath = "./config/.config.yaml"
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // RefreshInterval determines how often to reload the config RefreshInterval time.Duration `json:"refreshInterval" koanf:"refreshInterval" default:"10m"` // River is the configuration for the job queue River river.Config `koanf:"river" json:"river"` }
Config contains the configuration for the server
func Load ¶
Load is responsible for loading the configuration from a YAML file and environment variables. If the `cfgFile` is empty or nil, it sets the default configuration file path. Config settings are taken from default values, then from the config file, and finally from environment the later overwriting the former.
Click to show internal directories.
Click to hide internal directories.