router

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 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(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
	Handler http.Handler
	Subs    []*Routes
}

Jump to

Keyboard shortcuts

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