Documentation ¶
Index ¶
Constants ¶
View Source
const (
MiddlewareDependencyEvent = "*eventmw.EventMiddleware"
)
Variables ¶
This section is empty.
Functions ¶
func GetDispatcher ¶
func GetDispatcher(r *http.Request) *event.Dispatcher
GetDispatcher return the dispatcher from the context.
Types ¶
type EventMiddleware ¶
type EventMiddleware struct { middleware.NoDependencies // contains filtered or unexported fields }
EventMiddleware puts an event dispatcher to the context.
func New ¶
func New(dispatcher *event.Dispatcher) *EventMiddleware
New creates a new EventMiddleware.
Click to show internal directories.
Click to hide internal directories.