Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { logging.Logger Services map[string]service.HTTP Redis *redis.Redis DB *sql.DB // contains filtered or unexported fields }
Container is a collection of all common application level concerns. Things like Logger, Connection Pool for Redis etc which is shared across is placed here.
func NewContainer ¶
func (*Container) GetAppName ¶ added in v0.2.0
func (*Container) GetAppVersion ¶ added in v0.2.0
func (*Container) GetHTTPService ¶
GetHTTPService returns registered http services. HTTP services are registered from AddHTTPService method of gofr object.
Click to show internal directories.
Click to hide internal directories.