Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { ServerConfig ServerConfig `mapstructure:"app"` DBConfig DatabaseConfig `mapstructure:"db"` ClientConfig ClientConfig `mapstructure:"client"` }
func ProvideAppConfig ¶
type ClientConfig ¶
type ConnectionPool ¶
type DatabaseConfig ¶
type DatabaseConfig struct { Dbname string `mapstructure:"name"` Schema string `mapstructure:"schema"` Username string `mapstructure:"user"` Password string `mapstructure:"password"` Host string `mapstructure:"host"` Port int `mapstructure:"port"` LogMode bool `mapstructure:"logMode"` SslMode string `mapstructure:"sslMode"` Connection ConnectionPool `mapstructure:"connectionPool"` MigrationPath string `mapstructure:"migrationPath"` }
type ServerConfig ¶
type ServerConfig struct { ServiceName string `mapstructure:"serviceName"` Host string `mapstructure:"host"` Port int `mapstructure:"port"` LogLevel string `mapstructure:"logLevel"` ReviewServerAddress string `mapstructure:"reviewServerAddress"` BookServerAddress string `mapstructure:"bookServerAddress"` BookInfoServerAddress string `mapstructure:"bookInfoServerAddress"` }
Click to show internal directories.
Click to hide internal directories.