config

package
v0.0.0-...-61222a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 1 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL