Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/claygod/Bxog
/ functions
Functions
48 in github.com/claygod/Bxog
⨍
Functions
48
◇
Types & classes
6
↓ 26 callers
Method
Add
Add - add a rule specifying the handler (the default method - GET, ID - as a string to this rule)
router.go:28
↓ 16 callers
Function
New
New - create a new multiplexer
router.go:23
↓ 16 callers
Method
ServeHTTP
ServeHTTP looks for a matching route
server.go:12
↓ 16 callers
Method
Test
Test - Start analogue (for testing only)
router.go:107
↓ 8 callers
Method
Method
(value string)
route.go:46
↓ 5 callers
Method
genUint
(s string, total typeHash)
index.go:268
↓ 4 callers
Method
Params
Params - extract parameters from URL
router.go:74
↓ 4 callers
Method
genSalt
(s string)
index.go:278
↓ 2 callers
Method
Create
Create - generate URL of the available options
router.go:90
↓ 2 callers
Method
Id
(value string)
route.go:52
↓ 2 callers
Method
compile
* When compiling the required data for two methods of routing search (the second is left as an alternative) */
index.go:95
↓ 2 callers
Method
genSplit
(s string)
route.go:78
↓ 2 callers
Method
genUintSlice
(s string, salt typeHash, cHashes *[HTTP_SECTION_COUNT]typeHash)
index.go:237
↓ 2 callers
Function
newIndex
()
index.go:23
↓ 2 callers
Function
newSection
(sec string, tps int)
section.go:13
↓ 1 callers
Method
Default
Default Handler
server.go:21
↓ 1 callers
Method
fillCore
()
index.go:119
↓ 1 callers
Method
fillNode
(n *node, shiftLeft int)
index.go:123
↓ 1 callers
Method
find2X
(curLevel int, curShift int, curHash typeHash)
index.go:194
↓ 1 callers
Method
findTree
(req *http.Request)
index.go:214
↓ 1 callers
Method
findX
(ln int, level int, tree2 *node, cHashes *[HTTP_SECTION_COUNT]typeHash)
index.go:225
↓ 1 callers
Method
getNode
(arr map[string]*route)
index.go:34
↓ 1 callers
Function
newNode
()
node.go:14
↓ 1 callers
Method
newRoute
(url string, handler func(http.ResponseWriter, *http.Request, *Router), method string)
route.go:21
↓ 1 callers
Method
parseUrl
(url string)
route.go:58
↓ 1 callers
Method
setSections
(url string)
route.go:36
Function
IHandler
(w http.ResponseWriter, req *http.Request, r *Router)
bxog_test.go:258
Method
Shutdown
Shutdown - graceful stop the server
router.go:56
Method
Start
Start - start the server indicating the listening port
router.go:37
Method
Stop
Stop - aggressive stop the server
router.go:65
Function
THandler
(w http.ResponseWriter, req *http.Request, r *Router)
bxog_test.go:262
Function
TestCreateUrl
(t *testing.T)
bxog_test.go:139
Function
TestDefaultId
Test default ID
bxog_test.go:153
Function
TestDefaultMethodGet
(t *testing.T)
bxog_test.go:106
Function
TestError404
(t *testing.T)
bxog_test.go:50
Function
TestFool
(t *testing.T)
bxog_test.go:242
Function
TestGetParam
(t *testing.T)
bxog_test.go:121
Function
TestMoreRoutes
(t *testing.T)
bxog_test.go:227
Function
TestMultipleRoutingVariables
(t *testing.T)
bxog_test.go:181
Function
TestRouteSlash
Test route "/"
bxog_test.go:167
Function
TestRouting
(t *testing.T)
bxog_test.go:37
Function
TestRoutingCore
(t *testing.T)
bxog_test.go:24
Function
TestRoutingMethod
(t *testing.T)
bxog_test.go:63
Function
TestRoutingPathDinamic
Test if the mux don't handle by prefix (dinamic)
bxog_test.go:92
Function
TestRoutingPathStatic
Test if the mux don't handle by prefix (static)
bxog_test.go:77
Function
TestRoutingVariable
(t *testing.T)
bxog_test.go:197
Function
TestSlashEnd
(t *testing.T)
bxog_test.go:214
Method
findShift
(req *http.Request)
index.go:162