Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitApp ¶
InitApp loads the application configurations from a file and saved it in appConfig and initialize the logger The appConfig is cached in container, so it only loads the configuration file once. InitApp only needs to be called once. If the configuration changes, you can call it again to reinitialize the app.
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package config reasd configurations from a YAML file and load them into a AppConfig type to save the configuration information for the application.
|
Package config reasd configurations from a YAML file and load them into a AppConfig type to save the configuration information for the application. |
package container use dependency injection to create concrete type and wire the whole application together
|
package container use dependency injection to create concrete type and wire the whole application together |
Package logger represents a generic logging interface
|
Package logger represents a generic logging interface |
Click to show internal directories.
Click to hide internal directories.