myrouter

package module
v0.0.0-...-d01c34b Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMyRouter

func NewMyRouter() *router

func NewMyRouterWithRoutes

func NewMyRouterWithRoutes(routes ...map[RouteKey]func(
	w http.ResponseWriter,
	r *http.Request,
	ps common.QueryMap)) *router

Types

type RouteKey

type RouteKey struct {
	Path     string
	Method   string
	NeedAuth bool
}

Jump to

Keyboard shortcuts

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