Documentation ¶
Overview ¶
Package config provides functionalities to decode, verify, and enrich the environment and configuration file of a protokollamt deployment.
Index ¶
- func CheckFlags(envName string, configName string) (string, string, error)
- func DefineRoutes(c *models.Config) *gin.Engine
- func LoadConfig(configName string, dbPassword string, mailPassword string) (*models.Config, error)
- func OpenDatabase(connString string, deployStage string, resetProt bool, resetRemv bool, ...) (*gorm.DB, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFlags ¶
CheckFlags verifies that supplied flags are no file system paths and point to existing files.
func DefineRoutes ¶
DefineRoutes initializes a new default gin router, defines the provided HTTP endpoints of protokollamt, and declared where static and template resources are located.
func LoadConfig ¶
LoadConfig expects a name for protokollamt's configuration file. It attempts to parse its contents into above configuration structs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.