Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LogLevel string `json:"log_level" validate:"oneof=panic fatal error warn info debug trace"` APIPort string `json:"api_port" validate:"required"` Database struct { Host string `json:"host" validate:"required"` Port string `json:"port" validate:"required"` Name string `json:"name" validate:"required"` Username string `json:"username" validate:"required"` Password string `json:"password" validate:"required"` } `json:"database"` }
func ReadConfig ¶
Click to show internal directories.
Click to hide internal directories.