router

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: Apache-2.0 Imports: 4 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 {
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(rootPath *regexp.Regexp, c *Routes) *Router

func (*Router) ServeHTTP

func (router *Router) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type Routes

type Routes struct {
	Method      string
	Pat         *regexp.Regexp
	HandlerFunc http.HandlerFunc
	Subs        []*Routes
}

Jump to

Keyboard shortcuts

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