Documentation ¶
Overview ¶
Package config provides a struct to store the applications config
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppConfig struct { PGDB DBConfig Logging LoggingConfig Tracing otelx.Config // APIServerJWTAuth sets the JWT verification configuration for the conditionorc API service. APIServerJWTAuth []ginjwt.AuthConfig `mapstructure:"ginjwt_auth"` }
AppConfig stores all the config values for our application
Functions ¶
Types ¶
type DBConfig ¶ added in v1.20.2
type DBConfig struct { Name string `mapstructure:"name"` Host string `mapstructure:"host"` User string `mapstructure:"user"` Password string `mapstructure:"password"` Params string `mapstructure:"params"` URI string `mapstructure:"uri"` Connections struct { MaxOpen int `mapstructure:"max_open"` MaxIdle int `mapstructure:"max_idle"` MaxLifetime time.Duration `mapstructure:"max_lifetime"` } }
DBConfig is used to configure a new DB connection
type LoggingConfig ¶ added in v1.20.2
Click to show internal directories.
Click to hide internal directories.