chi

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const ConstructorPriority = 5

Variables

This section is empty.

Functions

func GetRoutePath added in v0.7.0

func GetRoutePath(r *http.Request) string

func RouteContext added in v0.14.0

func RouteContext(r *http.Request) *chi.Context

func SetRoutePath added in v0.7.0

func SetRoutePath(r *http.Request, path string)

func WithRouteContext added in v0.14.0

func WithRouteContext(r *http.Request, cc *chi.Context) context.Context

Types

type ChiHandler

type ChiHandler interface {
	http.Handler
	chi.Routes
}

type ChiWrapper added in v0.5.0

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

func (*ChiWrapper) PageInfo added in v0.10.0

func (cw *ChiWrapper) PageInfo(r *http.Request) (interface{}, bool)

func (*ChiWrapper) TryServeHTTP added in v0.5.0

func (cw *ChiWrapper) TryServeHTTP(w http.ResponseWriter, r *http.Request) error

type ChiWrapperConstructor added in v0.5.0

type ChiWrapperConstructor struct{}

func (*ChiWrapperConstructor) New added in v0.5.0

func (f *ChiWrapperConstructor) New(pattern string, h interface{}) (types.Handler, bool)

func (ChiWrapperConstructor) Priority added in v0.5.0

func (_ ChiWrapperConstructor) Priority() int

Jump to

Keyboard shortcuts

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