Documentation
¶
Index ¶
- func LoadConfig() (*types.Config, error)
- func ProvideDatabaseConfig(config *types.Config) database.Config
- func ProvideLockConfig(config *types.Config) lock.Config
- func ProvidePubSubConfig(config *types.Config) pubsub.Config
- func ProvideRedis(config *types.Config) (redis.UniversalClient, error)
- func Register(app *kingpin.Application, ...)
- func SetupLogger(config *types.Config)
- func SetupProfiler(config *types.Config)
- type System
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func ProvideDatabaseConfig ¶
ProvideDatabaseConfig loads the database config from the main config.
func ProvideLockConfig ¶
ProvideLockConfig generates the `lock` package config from the config.
func ProvideRedis ¶
func ProvideRedis(config *types.Config) (redis.UniversalClient, error)
ProvideRedis provides a redis client based on the configuration. TODO: add support for TLS.
func SetupLogger ¶
SetupLogger configures the global logger from the loaded configuration.
func SetupProfiler ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.