Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LogLevel string `mapstructure:"log_level"` Port string `mapstructure:"port"` Gin struct { Mode string `mapstructure:"mode"` } `mapstructure:"gin"` Swagger struct { Hostname string `mapstructure:"hostname"` } `mapstructure:"swagger"` Sentry struct { DSN string `mapstructure:"dsn"` SampleRate float32 `mapstructure:"sample_rate"` } `mapstructure:"sentry"` Database struct { URL string `mapstructure:"url"` Log bool `mapstructure:"log"` } `mapstructure:"database"` Redis struct { URL string `mapstructure:"url"` TTL time.Duration `mapstructure:"ttl"` } `mapstructure:"redis"` Prometheus struct { NameSpace string `mapstructure:"namespace"` SubSystem string `mapstructure:"subsystem"` } `mapstructure:"prometheus"` }
var Default Config //nolint:gochecknoglobals // config must be global
Default is a config instance.
Click to show internal directories.
Click to hide internal directories.