simple

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorHandler

type ErrorHandler func(*http.Request, error) *http.Response

type Handler

type Handler func(*http.Request) *http.Response

type Router

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

func NewRouter

func NewRouter(handler Handler, errHandler ErrorHandler) 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

func (Router) OnStart added in v0.7.0

func (r Router) OnStart() error

Jump to

Keyboard shortcuts

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