MCPcopy Create free account

hub / github.com/donutloop/mux / functions

Functions168 in github.com/donutloop/mux

↓ 15 callersMethodHandlerFunc
(handler func(http.ResponseWriter, *http.Request))
route.go:29
↓ 14 callersMethodError
()
errors.go:39
↓ 12 callersMethodHandleFunc
HandleFunc registers a new route with a matcher for the URL path. See Route.Path() and Route.HandlerFunc().
router.go:181
↓ 12 callersMethodMatch
(*http.Request)
matcher.go:17
↓ 10 callersMethodNewRoute
NewRoute registers an empty route.
router.go:147
↓ 10 callersMethodRegisterRoute
RegisterRoute registers and validates a new route
router.go:152
↓ 9 callersMethodRank
()
matcher.go:18
↓ 9 callersFunctionnewPathWithVarsMatcher
(path string)
matcher.go:114
↓ 8 callersMethodPath
(string)
route.go:28
↓ 6 callersFunctionClassic
Classic returns a new classic router instance.
classic.go:4
↓ 6 callersMethodHandle
Handle registers a new route with a matcher for the URL path. See Route.Path() and Route.Handler().
router.go:173
↓ 5 callersMethodKind
()
route.go:31
↓ 5 callersFunctionNewBadRouteError
(r RouteInterface, s string)
errors.go:11
↓ 5 callersMethodaddMatcher
addMatcher adds a matcher to the route.
route.go:157
↓ 5 callersFunctionnewSchemeMatcher
(schemes ...string)
matcher.go:76
↓ 4 callersMethodError
()
errors.go:18
↓ 4 callersMethodGet
Get return the key value, of the current *http.Request queries
route.go:240
↓ 4 callersFunctionNewBadPathError
NewBadPathError returns an error that formats as the given text.
errors.go:42
↓ 4 callersMethodValidate
(RouteInterface)
validator.go:7
↓ 4 callersFunctionmatchMap
matchMapWithString returns true if the given key/value pairs exist in a given map.
helper.go:102
↓ 4 callersFunctionnewHeaderMatcher
(pairs ...string)
matcher.go:24
↓ 4 callersFunctionnewHeaderRegexMatcher
(pairs ...string)
matcher.go:44
↓ 4 callersFunctionnewMethodValidator
newMethodValidator returns default method validator
validator.go:14
↓ 3 callersMethodGetMethodName
()
route.go:25
↓ 3 callersMethodGetPath
()
route.go:27
↓ 3 callersMethodHandler
(http.Handler)
route.go:23
↓ 3 callersMethodServeHTTP
ServeHTTP dispatches the handler registered in the matched route. When there is a match, the route variables can be retrieved calling mux.GetVars(req
router.go:78
↓ 3 callersMethodSortRoutes
SortRoutes sorts the routes (Rank: RegexPath, PathWithVars, PathNormal)
router.go:258
↓ 3 callersMethodcompare
(string)
helper.go:75
↓ 3 callersFunctioncontextGet
(r *http.Request, key interface{})
context.go:64
↓ 3 callersFunctioncontextSet
(r *http.Request, key, val interface{})
context.go:68
↓ 3 callersFunctionconvertStringsToMapString
convertStringsToMap converts variadic string parameters to a string to string map.
helper.go:22
↓ 3 callersFunctiongenericConvertStringsToMap
genericConvertStringsToMap converts variadic string paramers to a string to whatever.
helper.go:51
↓ 3 callersFunctionnewPathRegexMatcher
(path string)
matcher.go:149
↓ 2 callersFunctionCurrentRoute
CurrentRoute returns the matched route for the current request. This only works when called inside the handler of the matched route because the matche
context.go:30
↓ 2 callersMethodError
()
errors.go:27
↓ 2 callersMethodGetAll
GetAll returns all queries of the current *http.Request queries
route.go:248
↓ 2 callersMethodGetMatchers
()
route.go:30
↓ 2 callersFunctionGetQueries
GetQueries returns the query variables for the current request.
context.go:19
↓ 2 callersFunctionGetVars
GetVars returns the route variables for the current request, if any.
context.go:53
↓ 2 callersMethodHasErrors
HasErrors checks if any errors exists
router.go:241
↓ 2 callersFunctionNewBadMethodError
NewBadMethodError returns an error that formats as the given text.
errors.go:30
↓ 2 callersMethodPath
Path adds a matcher for the URL path. It accepts a path with zero variables. The template must start with a "/". For example: r := mux.Classic() r.Pa
route.go:174
↓ 2 callersMethodSetError
(error)
route.go:19
↓ 2 callersFunctionconvertStringsToMapRegex
mapFromPairsToRegex converts variadic string paramers to a string to regex map.
helper.go:33
↓ 2 callersFunctionextractQueries
(req *http.Request)
context.go:96
↓ 2 callersMethodextractVarsIndexies
(prefix string, path string, name string)
route.go:206
↓ 2 callersMethodnotFoundHandler
()
router.go:118
↓ 1 callersFunctionAddCurrentRoute
(r *http.Request, val interface{})
context.go:48
↓ 1 callersFunctionAddQueries
(r *http.Request)
context.go:37
↓ 1 callersFunctionAddVars
(r *http.Request, val interface{})
context.go:60
↓ 1 callersMethodCount
Count returns count of the current *http.Request queries
context.go:92
↓ 1 callersMethodDelete
Delete registers a new delete route for the URL path See Route.Path() and Route.HandlerFunc()
router.go:205
↓ 1 callersMethodExtractVars
(req *http.Request)
route.go:26
↓ 1 callersMethodGetError
()
route.go:20
↓ 1 callersMethodGetError
GetError returns an error resulted from building the route
route.go:106
↓ 1 callersMethodGetHandler
()
route.go:22
↓ 1 callersMethodHandler
Handler sets a handler for the route.
route.go:94
↓ 1 callersMethodHasError
()
route.go:18
↓ 1 callersMethodHasHandler
()
route.go:21
↓ 1 callersMethodHasVars
()
route.go:17
↓ 1 callersMethodHead
Head registers a new head route for the URL path See Route.Path() and Route.HandlerFunc()
router.go:217
↓ 1 callersMethodListenAndServe
ListenAndServe listens on the TCP network address addr and then calls Serve with handler to handle requests on incoming connections.
router.go:224
↓ 1 callersMethodMatch
(req *http.Request)
route.go:32
↓ 1 callersFunctionNewRouter
NewRouter returns a new router instance.
router.go:11
↓ 1 callersMethodOptions
Options registers a new options route for the URL path See Route.Path() and Route.HandlerFunc()
router.go:211
↓ 1 callersMethodPost
Post registers a new post route for the URL path See Route.Path() and Route.HandlerFunc()
router.go:199
↓ 1 callersMethodPut
Put registers a new put route for the URL path See Route.Path() and Route.HandlerFunc()
router.go:193
↓ 1 callersMethodSetMethodName
(string)
route.go:24
↓ 1 callersMethodUseRoute
UseRoute that you can use diffrent instances routes
router.go:53
↓ 1 callersFunctioncleanPath
cleanPath returns the canonical path for p, eliminating . and .. elements. Borrowed from the net/http package. net/http/server.go
router.go:129
↓ 1 callersFunctioncontainsRegex
containsRegexPath returns true if the path a regex path
helper.go:135
↓ 1 callersFunctioncontainsVars
containsRegexPath returns true if the path contains vars
helper.go:140
↓ 1 callersFunctioncreateRandomStringsCount
()
helper_test.go:10
↓ 1 callersFunctionisEvenPairs
the count is not an even number.
helper.go:12
↓ 1 callersMethodisNotEmpty
()
helper.go:76
↓ 1 callersFunctionnewPathValidator
()
validator.go:42
↓ 1 callersFunctionpopulateHeaderWithTestData
(request *http.Request)
matcher_test.go:362
↓ 1 callersFunctiontestRoute
(rt routeTest)
router_test.go:282
↓ 1 callersMethodtriggerMatching
triggerMatching matches registered routes against the request.
router.go:58
FunctionBenchmarkExtractQueries
(b *testing.B)
context_test.go:30
FunctionBenchmarkHeaderMatchers
(b *testing.B)
matcher_test.go:308
FunctionBenchmarkMatchMap
(b *testing.B)
helper_test.go:106
FunctionBenchmarkMethodValidaor
(b *testing.B)
validator_test.go:35
FunctionBenchmarkNewPathWithVarsMatcher
(b *testing.B)
matcher_test.go:399
FunctionBenchmarkPathMatchers
(b *testing.B)
matcher_test.go:167
FunctionBenchmarkSchemeMatcher
(b *testing.B)
matcher_test.go:49
MethodExtractVars
ExtractVars extract all vars of the current path
route.go:253
MethodGet
Get registers a new get route for the URL path See Route.Path() and Route.HandlerFunc()
router.go:187
MethodGet
Get return the key value, of the current *http.Request queries
context.go:79
MethodGetAll
Get returns all queries of the current *http.Request queries
context.go:87
MethodGetHandler
GetHandler returns the handler for the route, if any.
route.go:89
MethodGetMatchers
GetMatchers get the Matchers for the route
route.go:126
MethodGetMethodName
GetMethodName get the method name for the route
route.go:121
MethodGetName
GetName returns the name for the route.
route.go:152
MethodGetPath
GetPath returns the handler for the route.
route.go:202
MethodHandlerFunc
HandlerFunc sets a handler function for the route.
route.go:131
MethodHasError
HasError check if an error exists.
route.go:101
MethodHasHandler
HasHandler returns ture if route has a handler.
route.go:84
MethodHasVars
HasVars check if path has any vars
route.go:233
next →1–100 of 168, ranked by callers