router

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params = httprouter.Params

func ParamsFromContext

func ParamsFromContext(ctx context.Context) Params

func ParamsFromRequest

func ParamsFromRequest(http *http.Request) Params

type Router

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

func New

func New() *Router

func (*Router) DELETE

func (r *Router) DELETE(path string, handler http.Handler) *Router

func (*Router) GET

func (r *Router) GET(path string, handler http.Handler) *Router

func (*Router) Handler

func (r *Router) Handler(method string, path string, handler http.Handler) *Router

func (*Router) InternalRouter

func (r *Router) InternalRouter() *httprouter.Router

func (*Router) POST

func (r *Router) POST(path string, handler http.Handler) *Router

func (*Router) PUT

func (r *Router) PUT(path string, handler http.Handler) *Router

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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