config

package
v0.0.0-...-070ce36 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dbhost       string        `env:"POSTGRES_HOST"`
	Dbname       string        `env:"POSTGRES_DB_NAME"`
	Dbusername   string        `env:"POSTGRES_USER"`
	Dbpassword   string        `env:"POSTGRES_PASSWORD"`
	Dockerdbport int           `env:"DOCKER_DB_PORT"`
	MaxPoolSize  int           `env:"MAX_POOL_SIZE"`
	ConnAttempts int           `env:"CONN_ATTEMPTS"`
	ConnTimeout  time.Duration `env:"CONN_TIMEOUT"`
}

func NewConfig

func NewConfig() (Config, error)

Jump to

Keyboard shortcuts

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