Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Struct ¶
type Struct struct { Database struct { User string `json:"user"` Password string `json:"password"` Host string `json:"host"` Database string `json:"database"` Port int `json:"port"` } `json:"database"` Consul struct { ACL string `json:"acl"` Host string `json:"host"` Port int `json:"port"` } `json:"consul"` LogLevel string `json:"loglevel"` }
Struct that represents the configuration
func GetConfig ¶
GetConfig reads the configuration from a configuration file and returns a configuration struct
func (*Struct) OverwriteConfig ¶
OverwriteConfig updates the configuration with cli context
func (*Struct) PrintDebug ¶
PrintDebug returns a string representation of the configuration
func (*Struct) ValidateConfiguration ¶
ValidateConfiguration validates a given configuration
Click to show internal directories.
Click to hide internal directories.