Documentation
¶
Overview ¶
Package config parses and validates the configuration needed to run vulcan-tracker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseLogLvl ¶
ParseLogLvl parses the level of a log from a string to a log.Lvl object.
Types ¶
type AwsConfig ¶
type AwsConfig struct {
ServerCredentialsKey string `toml:"server_credentials_key"`
Endpoint string `toml:"endpoint"`
Region string `toml:"region"`
}
AwsConfig stores the AWS configuration.
type Config ¶
type Config struct {
API apiConfig `toml:"api"`
Log logConfig `toml:"log"`
PSQL postgresql.ConnStr `toml:"postgresql"`
AWS AwsConfig `toml:"aws"`
}
Config represents all the configuration needed to run the project.
func ParseConfig ¶
ParseConfig parses de config file and set default values when it is needed.
Click to show internal directories.
Click to hide internal directories.