config

package
v0.0.0-...-275689c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(env string)

Types

type Configuration

type Configuration struct {
	Service struct {
		Name      string `yaml:"name"`
		LogLevel  int    `yaml:"loglevel"`
		DebugMode bool   `yaml:"debug"`
	} `yaml:"service"`
	HttpServer struct {
		Port string `yaml:"port"`
		Host string `yaml:"host"`
	} `yaml:"httpserver"`
	Database struct {
		Username string `yaml:"user"`
		Password string `yaml:"pass"`
		Port     int    `yaml:"port"`
		Host     string `yaml:"host"`
		DBName   string `yaml:"db"`
		LogLevel int    `yaml:"loglevel"`

		MaxIdleConns    int `yaml:"maxidlecon"`
		MaxOpenConns    int `yaml:"maxopencon"`
		ConnMaxLifetime int `yaml:"conmaxlifetime"`
	} `yaml:"database"`
	Jwt struct {
		SecretKey string `yaml:"secretkey"`
		TokenAge  int    `yaml:"age"`
	} `yaml:"jwt"`
}
var Config Configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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