Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerConfig ¶
type LoggerConfig struct {
Level string `env:"LOG_LEVEL" envDefault:"debug"`
}
func ProvideLoggerConfig ¶
func ProvideLoggerConfig() (*LoggerConfig, error)
type PostgresqlConfig ¶
type PostgresqlConfig struct { DSN string `env:"POSTGRES_DSN"` Timeout int `env:"POSTGRES_TIMEOUT" envDefault:"5000"` }
func ProvidePostgresqlConfig ¶
func ProvidePostgresqlConfig() (*PostgresqlConfig, error)
type ServerConfig ¶
type ServerConfig struct {
Port int `env:"PORT" envDefault:"8000"`
}
func ProvideServerConfig ¶
func ProvideServerConfig() (*ServerConfig, error)
Click to show internal directories.
Click to hide internal directories.