Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/donutloop/mux
/ types & classes
Types & classes
26 in github.com/donutloop/mux
⨍
Functions
168
◇
Types & classes
26
↓ 8 callers
TypeAlias
stringComparison
helper.go:79
↓ 7 callers
TypeAlias
pathMatcher
pathMatcher matches the request against a URL path.
matcher.go:99
↓ 3 callers
FuncType
MatcherFunc
MatcherFunc is the function signature used by custom Matchers.
matcher.go:62
↓ 2 callers
TypeAlias
Matchers
Matchers implements the sort interface (len, swap, less) see sort.Sort (Standard Library)
matcher.go:166
↓ 1 callers
TypeAlias
MethodValidator
MethodValidator validates the string against a method.
validator.go:11
↓ 1 callers
TypeAlias
Vars
route.go:237
↓ 1 callers
TypeAlias
headerMatcher
headerMatcher matches the request against header values.
matcher.go:22
↓ 1 callers
TypeAlias
headerRegexMatcher
headerRegexMatcher matches the request against header values.
matcher.go:42
↓ 1 callers
TypeAlias
queries
context.go:76
Struct
BadMethodError
BadMethodError creates error for bad method
errors.go:23
Struct
BadPathError
BadPathError creates error for bad path
errors.go:35
Struct
BadRouteError
BadRouteError creates error for a bad route
errors.go:6
Interface
Matcher
Matcher types try to match a request.
matcher.go:16
Struct
Route
Route stores information to match a request and build URLs.
route.go:36
Interface
RouteInterface
RouteInterface that you can create your own custom route
route.go:16
Struct
Router
Router registers routes to be matched and dispatches a handler. It implements the http.Handler interface, so it can be registered to serve requests:
router.go:33
Interface
Validator
Validator validates the incomming value against a valid value/s
validator.go:6
Interface
comparison
helper.go:74
TypeAlias
contextKey
context.go:10
Struct
pathRegexMatcher
pathWithVarsMatcher matches the request against a URL path.
matcher.go:145
Struct
pathValidator
pathValidator check if a path is set and validates the value .
validator.go:40
Struct
pathWithVarsMatcher
pathWithVarsMatcher matches the request against a URL path.
matcher.go:110
Struct
regexComparsion
helper.go:89
Struct
routeTest
router_test.go:15
TypeAlias
routes
routes implements the sort interface (len, swap, less) see sort.Sort (Standard Library)
router.go:269
TypeAlias
schemeMatcher
schemeMatcher matches the request against URL schemes.
matcher.go:74