mux

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnableStrictSlash = parseBool(os.Getenv("ENABLE_STRICT_SLASH"), false)

Functions

func NewRouter

func NewRouter(notFoundHandler, methodNotAllowedHandler http.Handler) router.Router

NewRouter new a mux router.

Types

type RouterInspect

type RouterInspect struct {
	PathTemplate     string   `json:"path_template"`
	PathRegexp       string   `json:"path_regexp"`
	QueriesTemplates []string `json:"queries_templates"`
	QueriesRegexps   []string `json:"queries_regexps"`
	Methods          []string `json:"methods"`
}

func InspectMuxRouter

func InspectMuxRouter(in interface{}) []*RouterInspect

Jump to

Keyboard shortcuts

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