Documentation ¶ Index ¶ type Handler type Router func New(handler, errHandler Handler) *Router func (r Router) Initialize() router.Router func (r Router) OnError(request *http.Request, err error) *http.Response func (r Router) OnRequest(request *http.Request) *http.Response Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Handler ¶ type Handler func(*http.Request) *http.Response type Router ¶ type Router struct { // contains filtered or unexported fields } func New ¶ added in v0.15.5 func New(handler, errHandler Handler) *Router func (Router) Initialize ¶ added in v0.16.0 func (r Router) Initialize() router.Router func (Router) OnError ¶ func (r Router) OnError(request *http.Request, err error) *http.Response func (Router) OnRequest ¶ func (r Router) OnRequest(request *http.Request) *http.Response Source Files ¶ View all Source files simple.go Click to show internal directories. Click to hide internal directories.