Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMethodNotAllowed error = &RouteError{"method not allowed"}
ErrMethodNotAllowed is returned when no method of the matched route matches
View Source
var ErrPathNotFound error = &RouteError{"no matching operation was found"}
ErrPathNotFound is returned when no route match is found
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct { Spec *openapi3.T Server *openapi3.Server Path string PathItem *openapi3.PathItem Method string Operation *openapi3.Operation }
Route describes the operation an http.Request can match
type RouteError ¶
type RouteError struct {
Reason string
}
RouteError describes Router errors
func (*RouteError) Error ¶
func (e *RouteError) Error() string
Directories ¶
Path | Synopsis |
---|---|
Package gorillamux implements a router.
|
Package gorillamux implements a router. |
Package legacy implements a router.
|
Package legacy implements a router. |
pathpattern
Package pathpattern implements path matching.
|
Package pathpattern implements path matching. |
Click to show internal directories.
Click to hide internal directories.