grouter

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: MIT Imports: 3 Imported by: 0

README

grouter

Trie tree based url router

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParsedRoute

type ParsedRoute struct {
	Url         string
	Pattern     string
	UrlParams   map[string]string
	QueryParams map[string]string
	Value       interface{}
}

type Router

type Router interface {
	AddRoute(method string, url string, value interface{}) error
	Lookup(method string, url string) (*ParsedRoute, error)
}

func NewRouter

func NewRouter() Router

Jump to

Keyboard shortcuts

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