router

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 3 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiddlewareFunc

type MiddlewareFunc = mux.MiddlewareFunc

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)

func (*Router) Get

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

func (*Router) Group

func (r *Router) Group(prefix string, cb func(r *Router))

func (*Router) Handle

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

func (*Router) Patch

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

func (*Router) Post

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

func (*Router) Put

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

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*Router) Use

func (r *Router) Use(middleware MiddlewareFunc)

Jump to

Keyboard shortcuts

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