router

package module
v0.0.0-...-84cc9e1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: MIT Imports: 3 Imported by: 1

README

router

基于压缩trie实现的http请求路由器, 支持通配符模式匹配

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router interface {
	Register(method, path string, handler interface{})
	Lookup(method, path string) (handler interface{}, param []UrlParam, redirect bool)
}

func New

func New() Router

type UrlParam

type UrlParam struct {
	Key   []byte
	Value []byte
}

Jump to

Keyboard shortcuts

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