router

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NONEMETHOD = 0 + iota
	GETMETHOD
	POSTMETHOD
	MAXMETHOD
)

Variables

This section is empty.

Functions

func AddFilter

func AddFilter(filter Filter)

func GetRouter

func GetRouter() *fasthttprouter.Router

func RegisterHander

func RegisterHander(method int, path string, handler Handler)

Types

type Handler

type Handler func(ctx context.Context, req *fasthttp.Request) service.Response

Jump to

Keyboard shortcuts

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