interceptor

package
v0.0.0-...-73d3301 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2016 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequestLogger

func NewRequestLogger(lg *log.Logger) *requestLogger

Types

type JSONCodec

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

func NewJSONCodec

func NewJSONCodec(st interface{}) *JSONCodec

func (*JSONCodec) After

func (c *JSONCodec) After(w http.ResponseWriter, r *http.Request)

func (*JSONCodec) Before

func (c *JSONCodec) Before(w http.ResponseWriter, r *http.Request)

type NoAfterInterceptor

type NoAfterInterceptor struct{}

func (*NoAfterInterceptor) After

type NoBeforeInterceptor

type NoBeforeInterceptor struct{}

func (*NoBeforeInterceptor) Before

type NopInterceptor

type NopInterceptor struct{}

func (*NopInterceptor) After

func (i *NopInterceptor) After(w http.ResponseWriter, r *http.Request)

func (*NopInterceptor) Before

func (i *NopInterceptor) Before(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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