Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Zhenye-Na/giligili
/ functions
Functions
100 in github.com/Zhenye-Na/giligili
⨍
Functions
100
◇
Types & classes
19
↓ 8 callers
Function
popupErrorMsg
(msg)
templates/scripts/home.js:272
↓ 6 callers
Function
sendErrorResponse
(w http.ResponseWriter, sc int, errMsg string)
streamserver/response.go:8
↓ 6 callers
Function
setCookie
(cname, cvalue, exmin)
templates/scripts/home.js:209
↓ 4 callers
Function
clearTables
()
api/dbops/api_test.go:13
↓ 4 callers
Function
sendErrorResponse
(w http.ResponseWriter, errResp defs.ErrResponse)
api/response.go:10
↓ 3 callers
Function
normalResponse
(w http.ResponseWriter, r *http.Response)
web/client.go:58
↓ 3 callers
Function
sendResponse
(w http.ResponseWriter, sc int, resp string)
scheduler/response.go:8
↓ 2 callers
Function
GetUserCredential
(loginName string)
api/dbops/api.go:28
↓ 2 callers
Function
GetVideoInfo
(vid string)
api/dbops/api.go:88
↓ 2 callers
Function
NewRunner
(size int, longlived bool, d fn, e fn)
scheduler/taskrunner/runner.go:16
↓ 2 callers
Method
StartAll
()
scheduler/taskrunner/runner.go:67
↓ 2 callers
Function
getCookie
(cname)
templates/scripts/home.js:216
↓ 2 callers
Function
nowInMilli
()
api/session/ops.go:17
↓ 2 callers
Function
popupNotificationMsg
(msg)
templates/scripts/home.js:265
↓ 2 callers
Function
refreshComments
(vid)
templates/scripts/home.js:242
↓ 2 callers
Function
selectVideo
(vid)
templates/scripts/home.js:232
↓ 1 callers
Function
AddNewComments
(vid string, aid int, content string)
api/dbops/api.go:126
↓ 1 callers
Function
AddNewVideo
(aid int, name string)
api/dbops/api.go:61
↓ 1 callers
Function
AddUserCredential
(loginName string, pwd string)
api/dbops/api.go:13
↓ 1 callers
Function
DeleteUser
(loginName string, pwd string)
api/dbops/api.go:45
↓ 1 callers
Function
DeleteVideoInfo
(vid string)
api/dbops/api.go:111
↓ 1 callers
Method
GetConn
()
streamserver/limiter.go:19
↓ 1 callers
Function
ListComments
(vid string, from, to int)
api/dbops/api.go:146
↓ 1 callers
Function
NewConnLimiter
(cc int)
streamserver/limiter.go:12
↓ 1 callers
Function
NewMiddleWareHandler
(r *httprouter.Router)
api/main.go:12
↓ 1 callers
Function
NewMiddleWareHandler
(r *httprouter.Router, cc int)
streamserver/main.go:13
↓ 1 callers
Function
NewWorker
(interval time.Duration, r *Runner)
scheduler/taskrunner/trmain.go:13
↓ 1 callers
Function
RegisterHandler
()
web/main.go:9
↓ 1 callers
Function
RegisterHandlers
()
scheduler/main.go:9
↓ 1 callers
Function
RegisterHandlers
()
api/main.go:25
↓ 1 callers
Function
RegisterHandlers
()
streamserver/main.go:20
↓ 1 callers
Method
ReleaseConn
()
streamserver/limiter.go:29
↓ 1 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
api/main.go:18
↓ 1 callers
Function
createVideo
(vname, callback)
templates/scripts/home.js:476
↓ 1 callers
Function
deleteExpiredSession
(sid string)
api/session/ops.go:21
↓ 1 callers
Function
deleteVideo
(vid string)
scheduler/taskrunner/tasks.go:11
↓ 1 callers
Function
deleteVideo
(vid, callback)
templates/scripts/home.js:545
↓ 1 callers
Function
getUserId
(callback)
templates/scripts/home.js:448
↓ 1 callers
Function
htmlCommentListElement
(cid, author, content)
templates/scripts/home.js:279
↓ 1 callers
Function
htmlVideoListElement
(vid, name, ctime)
templates/scripts/home.js:302
↓ 1 callers
Function
initPage
(callback)
templates/scripts/home.js:182
↓ 1 callers
Function
listAllComments
(vid, callback)
templates/scripts/home.js:616
↓ 1 callers
Function
listAllVideos
(callback)
templates/scripts/home.js:513
↓ 1 callers
Function
postComment
(vid, content, callback)
templates/scripts/home.js:578
↓ 1 callers
Function
registerUser
(callback)
templates/scripts/home.js:353
↓ 1 callers
Function
request
(b *ApiBody, w http.ResponseWriter, r *http.Request)
web/client.go:18
↓ 1 callers
Function
sendNormalResponse
(w http.ResponseWriter, resp string, sc int)
api/response.go:17
↓ 1 callers
Function
signinUser
(callback)
templates/scripts/home.js:402
↓ 1 callers
Method
startDispatch
()
scheduler/taskrunner/runner.go:28
↓ 1 callers
Method
startWorker
()
scheduler/taskrunner/trmain.go:20
↓ 1 callers
Function
validateUserSession
(r *http.Request)
api/auth.go:13
Function
AddVideoDeletionRecord
(vid string)
scheduler/dbops/api.go:8
Function
CreateUser
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
api/handlers.go:14
Function
DelVideoDeletionRecord
(vid string)
scheduler/dbops/internal.go:36
Function
DeleteSession
(sid string)
api/dbops/internal.go:87
Function
GenerateNewSessionId
(username string)
api/session/ops.go:39
Function
InsertSession
(sid string, ttl int64, uname string)
api/dbops/internal.go:11
Function
IsSessionExpired
(sid string)
api/session/ops.go:51
Function
LoadSessionsFromDB
()
api/session/ops.go:26
Function
Login
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
api/handlers.go:39
Function
NewUUID
()
api/utils/uuid.go:9
Function
ReadVideoDeletionRecord
(count int)
scheduler/dbops/internal.go:8
Function
RetrieveAllSessions
()
api/dbops/internal.go:52
Function
RetrieveSession
(sid string)
api/dbops/internal.go:27
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
streamserver/main.go:32
Function
Start
()
scheduler/taskrunner/trmain.go:29
Function
TestComments
(t *testing.T)
api/dbops/api_test.go:103
Function
TestMain
(m *testing.M)
api/dbops/api_test.go:20
Function
TestRunner
(t *testing.T)
scheduler/taskrunner/runner_test.go:10
Function
TestUserWorkFlow
(t *testing.T)
api/dbops/api_test.go:26
Function
TestVideoWorkFlow
(t *testing.T)
api/dbops/api_test.go:65
Function
ValidateUser
(w http.ResponseWriter, r *http.Request)
api/auth.go:28
Function
VideoClearDispatcher
(dc dataChan)
scheduler/taskrunner/tasks.go:22
Function
VideoClearExecutor
(dc dataChan)
scheduler/taskrunner/tasks.go:40
Function
apiHandler
(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
web/handlers.go:69
Function
homeHandler
(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
web/handlers.go:23
Function
init
()
scheduler/dbops/conn.go:13
Function
init
()
api/dbops/conn.go:13
Function
init
()
api/session/ops.go:13
Function
init
()
web/client.go:14
Function
main
()
scheduler/main.go:17
Function
main
()
api/main.go:35
Function
main
()
web/main.go:24
Function
main
()
streamserver/main.go:42
Function
proxyHandler
(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
web/handlers.go:87
Function
streamHandler
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
streamserver/handlers.go:21
Function
testAddComments
(t *testing.T)
api/dbops/api_test.go:110
Function
testAddUser
(t *testing.T)
api/dbops/api_test.go:33
Function
testAddVideoInfo
(t *testing.T)
api/dbops/api_test.go:74
Function
testDeleteUser
(t *testing.T)
api/dbops/api_test.go:47
Function
testDeleteVideoInfo
(t *testing.T)
api/dbops/api_test.go:89
Function
testGetUser
(t *testing.T)
api/dbops/api_test.go:40
Function
testGetVideoInfo
(t *testing.T)
api/dbops/api_test.go:82
Function
testListComments
(t *testing.T)
api/dbops/api_test.go:122
Function
testPageHandler
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
streamserver/handlers.go:14
Function
testRegetUser
(t *testing.T)
api/dbops/api_test.go:54
Function
testRegetVideoInfo
(t *testing.T)
api/dbops/api_test.go:96
Function
uploadHandler
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
streamserver/handlers.go:38
Function
userHomeHandler
(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
web/handlers.go:46
Function
vidDelRecHandler
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
scheduler/handlers.go:9