Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProductDBConnKey represents the sql connection key that will be used to // obtain the connection instance of product database ProductDBConnKey string = "sql.ProductConn" // TimeStampKey represents the time stamp key that will be used to // obtain the TimeStamp instance TimeStampKey string = "chrono.TimeStamp" // UserServiceConnKey represents de connection client key for // User Info Service UserServiceConnKey string = "userinfo.UserInfoServiceClient" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container interface { // Initialize is responsible for initializing all application structs Initialize(configFilename string) error // Get is responsible for returning the instance of a struct Get(key string) (instance interface{}, ok bool) // GetAppConfig is responsible for returning de application configuration properties GetAppConfig() *config.AppConfig // Put is responsible for adding an instance of a struct to the container Put(key string, value interface{}) // Remove is responsible for remove an instance of a struct to the container Remove(key string) }
Container is responsible for managing the application's dependencies
Click to show internal directories.
Click to hide internal directories.