router

package
v0.0.0-...-2350287 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrObjectTooLarge = fmt.Errorf("object to decode was longer than maximum allowed size")

Functions

This section is empty.

Types

type Error

type Error struct {
	Code int
	Msg  string
}

type RouteAccept

type RouteAccept struct {
	ModifyResponse func(response *http.Response) error
	ModifyBody     func(*http.Response) io.Reader
}

type Router

type Router interface {
	Route(*http.Request, *request.RequestInfo) (*RouteAccept, *Error)
}

func New

Jump to

Keyboard shortcuts

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