mux

package
v0.0.0-...-976baef Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMethodMismatch is returned when the method in the request does not match
	// the method defined against the route.
	ErrMethodMismatch = errors.New("method is not allowed")
	// ErrNotFound is returned when no route match is found.
	ErrNotFound = errors.New("no matching route was found")
)

Functions

This section is empty.

Types

type Route

type Route struct {
	*mux.Route
}

Route stores information to match a request and build URLs.

type Router

type Router struct {
	*mux.Router
}

Router registers routes to be matched and dispatches a handler.

func NewRouter

func NewRouter() *Router

NewRouter returns a new router instance.

Jump to

Keyboard shortcuts

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