Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Environments = map[string]Environment{
"dev": "dev.yml",
"prod": "prod.yml",
"test": "test.yml",
}
Environments contains all the possible environments
Functions ¶
func GetJWTConfig ¶
func GetJWTConfig(claims jwt.Claims) middleware.JWTConfig
GetJWTConfig returns the JWT config
func SetEnviroment ¶
func SetEnviroment(env Environment)
SetEnviroment sets the application wide environment
Types ¶
type Config ¶
type Config struct { ConnectionString string `yaml:"connection_string"` Database string `yaml:"database"` Debug bool `yaml:"debug"` Environment Environment JWTKey string `yaml:"JWT_key"` MigrationsPath string `yaml:"migrations_path"` }
Config contains the necessary application configuration
func (Config) GetCompleteConnectionString ¶
GetCompleteConnectionString returns the connection string based on the current config
Click to show internal directories.
Click to hide internal directories.