env

package
v0.0.0-...-02a6cbf Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 2 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 {
	ServerAddress        string        `mapstructure:"server_address"`
	DbUser               string        `mapstructure:"db_user"`
	DbPassword           string        `mapstructure:"db_password"`
	DbHost               string        `mapstructure:"db_host"`
	DbPort               int           `mapstructure:"db_port"`
	DbName               string        `mapstructure:"db_name"`
	MaxConnectionPool    int           `mapstructure:"max_connection_pool"`
	MaxConnectionTimeout time.Duration `mapstructure:"max_connection_timeout"`
	AuthUser             string        `mapstructure:"auth_user"`
	AuthPassword         string        `mapstructure:"auth_password"`
}

Config with all environmental variables

func NewConfig

func NewConfig() (*Config, error)

NewConfig initializes environment

Jump to

Keyboard shortcuts

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