router

package
v0.0.0-...-261bb52 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	*httprouter.Router
	// contains filtered or unexported fields
}

Router is have middleware httprouter

func New

func New() *Router

New return a new Router

func (*Router) DELETE

func (r *Router) DELETE(route string, h httprouter.Handle)

DELETE is func with middleware

func (*Router) GET

func (r *Router) GET(route string, h httprouter.Handle)

GET is func with middleware

func (*Router) HEAD

func (r *Router) HEAD(route string, h httprouter.Handle)

HEAD is func with middleware

func (*Router) OPTIONS

func (r *Router) OPTIONS(route string, h httprouter.Handle)

OPTIONS is func with middleware

func (*Router) PATCH

func (r *Router) PATCH(route string, h httprouter.Handle)

PATCH is func with middleware

func (*Router) POST

func (r *Router) POST(route string, h httprouter.Handle)

POST is func with middleware

func (*Router) PUT

func (r *Router) PUT(route string, h httprouter.Handle)

PUT is func with middleware

func (*Router) Use

func (r *Router) Use(mm ...middleware)

Use is func to add middleware

Jump to

Keyboard shortcuts

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