Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { // Config stores the application configuration. Config *config.Config // Validator stores the validator. Validator *Validator // Web stores the API framework. Web *echo.Echo // ItemRepo provides access to the Item storage medium. ItemRepo repository.ItemRepo }
Container contains all services used by the application and provides an easy way to handle dependency injection.
func NewContainer ¶
func NewContainer() *Container
NewContainer creates an instance of the Container struct with each of it's components initialized.
Click to show internal directories.
Click to hide internal directories.