events

package
v0.0.0-...-ba0b9ec Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: MIT Imports: 0 Imported by: 5

Documentation

Index

Constants

View Source
const (
	RequestReceived = iota
	BeforeHandler
	AfterHandler
	AfterResponse
)

Basic events

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter struct {
	// contains filtered or unexported fields
}

func (*Emitter) Emit

func (e *Emitter) Emit(session interface{}, event int, next func())

func (*Emitter) On

func (e *Emitter) On(event int, handler func(interface{}, func()))

Jump to

Keyboard shortcuts

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