fasthttp_router

package module
v0.0.0-...-83ae30b Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middlewares

func Middlewares(handler fasthttp.RequestHandler, middlewares ...Middleware) fasthttp.RequestHandler

func Split

func Split(source []byte, dest [][]byte) [][]byte

Types

type Middleware

type Middleware func(handler fasthttp.RequestHandler) fasthttp.RequestHandler

type Routable

type Routable interface {
	DELETE(path string, handler fasthttp.RequestHandler)
	GET(path string, handler fasthttp.RequestHandler)
	HEAD(path string, handler fasthttp.RequestHandler)
	OPTIONS(path string, handler fasthttp.RequestHandler)
	PATCH(path string, handler fasthttp.RequestHandler)
	POST(path string, handler fasthttp.RequestHandler)
	PUT(path string, handler fasthttp.RequestHandler)

	Group(path string, middlewares ...Middleware) Routable
}

type Router

type Router struct {
	NotFound fasthttp.RequestHandler
	// contains filtered or unexported fields
}

func New

func New() *Router

func (*Router) DELETE

func (router *Router) DELETE(path string, handler fasthttp.RequestHandler)

func (*Router) GET

func (router *Router) GET(path string, handler fasthttp.RequestHandler)

func (*Router) Group

func (router *Router) Group(path string, middlewares ...Middleware) Routable

func (*Router) HEAD

func (router *Router) HEAD(path string, handler fasthttp.RequestHandler)

func (*Router) Handler

func (router *Router) Handler(ctx *fasthttp.RequestCtx)

func (*Router) OPTIONS

func (router *Router) OPTIONS(path string, handler fasthttp.RequestHandler)

func (*Router) PATCH

func (router *Router) PATCH(path string, handler fasthttp.RequestHandler)

func (*Router) POST

func (router *Router) POST(path string, handler fasthttp.RequestHandler)

func (*Router) PUT

func (router *Router) PUT(path string, handler fasthttp.RequestHandler)

Jump to

Keyboard shortcuts

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