Documentation ¶
Index ¶
- func AuthConfig() server.AuthConfig
- func CanaryConfig() service.CanaryConfig
- func CloudWatchConfig() logger.CloudWatchConfiguration
- func KafkaZerologConfig() logger.KafkaZerologConfiguration
- func LoadConfiguration(defaultConfigFile string) error
- func LoggingConfig() logger.LoggingConfiguration
- func SentryLoggingConfig() logger.SentryLoggingConfiguration
- func ServerConfig() server.Config
- func StorageConfig() service.StorageConfig
- type Configuration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthConfig ¶
func AuthConfig() server.AuthConfig
AuthConfig function returns actual auth configuration.
func CanaryConfig ¶
func CanaryConfig() service.CanaryConfig
CanaryConfig function returns actual canary configuration.
func CloudWatchConfig ¶
func CloudWatchConfig() logger.CloudWatchConfiguration
CloudWatchConfig function returns actual CloudWatch configuration.
func KafkaZerologConfig ¶
func KafkaZerologConfig() logger.KafkaZerologConfiguration
KafkaZerologConfig function returns the configuration of ZeroLog for Kafka.
func LoadConfiguration ¶
LoadConfiguration loads configuration from defaultConfigFile, file set in configFileEnvVariableName or from env
func LoggingConfig ¶
func LoggingConfig() logger.LoggingConfiguration
LoggingConfig function returns actual logger configuration.
func SentryLoggingConfig ¶
func SentryLoggingConfig() logger.SentryLoggingConfiguration
SentryLoggingConfig function returns the sentry log configuration.
func ServerConfig ¶
ServerConfig function returns actual server configuration.
func StorageConfig ¶
func StorageConfig() service.StorageConfig
StorageConfig function returns actual storage configuration.
Types ¶
type Configuration ¶
type Configuration struct { ServerConfig server.Config `mapstructure:"server" toml:"server"` AuthConfig server.AuthConfig `mapstructure:"auth" toml:"auth"` StorageConfig service.StorageConfig `mapstructure:"storage" toml:"storage"` CanaryConfig service.CanaryConfig `mapstructure:"canary" toml:"canary"` LoggingConfig logger.LoggingConfiguration `mapstructure:"logging" toml:"logging"` CloudWatchConfig logger.CloudWatchConfiguration `mapstructure:"cloudwatch" toml:"cloudwatch"` SentryLoggingConfig logger.SentryLoggingConfiguration `mapstructure:"sentry" toml:"sentry"` KafkaZerologConfig logger.KafkaZerologConfiguration `mapstructure:"kafka_zerolog" toml:"kafka_zerolog"` }
Configuration is a structure holding the whole service configuration
var Config Configuration
Config has exactly the same structure as *.toml file