Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RestApi RestApi `yaml:"rest" json:"rest"` Database database.Config `yaml:"database" json:"database"` EnableOTEL bool `yaml:"enableOtel" json:"enableOtel" default:"false"` JWT middleware.JWTConfig `yaml:"jwt" json:"jwt"` }
Config serves as a struct to which configuration is mapped into from ENV or configuration file it is a global variable that can be accessed from anywhere in a program
var (
Conf Config
)
func InitConfig ¶
func InitConfig() Config
Click to show internal directories.
Click to hide internal directories.