Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { Port int `default:"3001"` ResetToken string `default:"supersecret"` AllowedDomains []string }
API is the api-related configuration struct
type App ¶
App is the app-related configuration struct App is referring the the whole app where the service is deployed
type Config ¶
Config represents the global config of the service
func LoadFromEnv ¶
LoadFromEnv loads the configuration file and populate the Config struct
type DB ¶
type DB struct { ConnectionString string `default:"postgres://user:pass@localhost/app"` Roles struct { Anonymous string `default:"anonymous"` User string `default:"normal_user"` } }
DB is the database-related configuration struct
Click to show internal directories.
Click to hide internal directories.