eventmw

package
v0.0.0-...-83625b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

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.

func (*EventMiddleware) Wrap

func (m *EventMiddleware) Wrap(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL