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
Click to show internal directories.
Click to hide internal directories.