Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Secrets ¶
type Secrets struct { Port string `json:"port"` JWTSecret string `json:"jwt_secret"` DBName string `json:"db_name"` DBURL string `json:"dburl"` }
Secrets contain all the config that this application needs
func LoadSecrets ¶
LoadSecrets loads secrets from the environment and returns it if a .env file is present, it would be loaded first default values are also set
Click to show internal directories.
Click to hide internal directories.