MCPcopy Create free account

hub / github.com/claygod/Bxog / functions

Functions48 in github.com/claygod/Bxog

↓ 26 callersMethodAdd
Add - add a rule specifying the handler (the default method - GET, ID - as a string to this rule)
router.go:28
↓ 16 callersFunctionNew
New - create a new multiplexer
router.go:23
↓ 16 callersMethodServeHTTP
ServeHTTP looks for a matching route
server.go:12
↓ 16 callersMethodTest
Test - Start analogue (for testing only)
router.go:107
↓ 8 callersMethodMethod
(value string)
route.go:46
↓ 5 callersMethodgenUint
(s string, total typeHash)
index.go:268
↓ 4 callersMethodParams
Params - extract parameters from URL
router.go:74
↓ 4 callersMethodgenSalt
(s string)
index.go:278
↓ 2 callersMethodCreate
Create - generate URL of the available options
router.go:90
↓ 2 callersMethodId
(value string)
route.go:52
↓ 2 callersMethodcompile
* When compiling the required data for two methods of routing search (the second is left as an alternative) */
index.go:95
↓ 2 callersMethodgenSplit
(s string)
route.go:78
↓ 2 callersMethodgenUintSlice
(s string, salt typeHash, cHashes *[HTTP_SECTION_COUNT]typeHash)
index.go:237
↓ 2 callersFunctionnewIndex
()
index.go:23
↓ 2 callersFunctionnewSection
(sec string, tps int)
section.go:13
↓ 1 callersMethodDefault
Default Handler
server.go:21
↓ 1 callersMethodfillCore
()
index.go:119
↓ 1 callersMethodfillNode
(n *node, shiftLeft int)
index.go:123
↓ 1 callersMethodfind2X
(curLevel int, curShift int, curHash typeHash)
index.go:194
↓ 1 callersMethodfindTree
(req *http.Request)
index.go:214
↓ 1 callersMethodfindX
(ln int, level int, tree2 *node, cHashes *[HTTP_SECTION_COUNT]typeHash)
index.go:225
↓ 1 callersMethodgetNode
(arr map[string]*route)
index.go:34
↓ 1 callersFunctionnewNode
()
node.go:14
↓ 1 callersMethodnewRoute
(url string, handler func(http.ResponseWriter, *http.Request, *Router), method string)
route.go:21
↓ 1 callersMethodparseUrl
(url string)
route.go:58
↓ 1 callersMethodsetSections
(url string)
route.go:36
FunctionIHandler
(w http.ResponseWriter, req *http.Request, r *Router)
bxog_test.go:258
MethodShutdown
Shutdown - graceful stop the server
router.go:56
MethodStart
Start - start the server indicating the listening port
router.go:37
MethodStop
Stop - aggressive stop the server
router.go:65
FunctionTHandler
(w http.ResponseWriter, req *http.Request, r *Router)
bxog_test.go:262
FunctionTestCreateUrl
(t *testing.T)
bxog_test.go:139
FunctionTestDefaultId
Test default ID
bxog_test.go:153
FunctionTestDefaultMethodGet
(t *testing.T)
bxog_test.go:106
FunctionTestError404
(t *testing.T)
bxog_test.go:50
FunctionTestFool
(t *testing.T)
bxog_test.go:242
FunctionTestGetParam
(t *testing.T)
bxog_test.go:121
FunctionTestMoreRoutes
(t *testing.T)
bxog_test.go:227
FunctionTestMultipleRoutingVariables
(t *testing.T)
bxog_test.go:181
FunctionTestRouteSlash
Test route "/"
bxog_test.go:167
FunctionTestRouting
(t *testing.T)
bxog_test.go:37
FunctionTestRoutingCore
(t *testing.T)
bxog_test.go:24
FunctionTestRoutingMethod
(t *testing.T)
bxog_test.go:63
FunctionTestRoutingPathDinamic
Test if the mux don't handle by prefix (dinamic)
bxog_test.go:92
FunctionTestRoutingPathStatic
Test if the mux don't handle by prefix (static)
bxog_test.go:77
FunctionTestRoutingVariable
(t *testing.T)
bxog_test.go:197
FunctionTestSlashEnd
(t *testing.T)
bxog_test.go:214
MethodfindShift
(req *http.Request)
index.go:162