Documentation ¶
Index ¶
Constants ¶
View Source
const ( // KeyServiceContainer is the context key associated with the ServiceContainer value KeyServiceContainer goweb.ContextKey = "serviceContainer" )
Variables ¶
View Source
var ErrInvalidServiceContainer = errors.New("invalid service container")
ErrInvalidServiceContainer is returned when no service container could be found on the given context
Functions ¶
func ServiceContainer ¶
func ServiceContainer(container *service.Container) goweb.Middleware
ServiceContainer expose the given service container as a context value on the HTTP requests
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.