MCPcopy Create free account

hub / github.com/alanhou/golang-streaming / functions

Functions118 in github.com/alanhou/golang-streaming

↓ 20 callersFunctionsendErrorResponse
(w http.ResponseWriter, errResp defs.ErrResponse)
video_server/api/response.go:10
↓ 8 callersFunctionpopupErrorMsg
(msg)
video_server/templates/scripts/home.js:271
↓ 8 callersFunctionsendNormalResponse
(w http.ResponseWriter, resp string, sc int)
video_server/api/response.go:17
↓ 6 callersFunctionValidateUser
(w http.ResponseWriter, r *http.Request)
video_server/api/auth.go:28
↓ 6 callersFunctionsendErrorResponse
(w http.ResponseWriter, sc int, errMsg string)
video_server/streamserver/response.go:8
↓ 6 callersFunctionsetCookie
(cname, cvalue, exmin)
video_server/templates/scripts/home.js:208
↓ 4 callersFunctionclearTables
()
video_server/api/dbops/api_test.go:14
↓ 3 callersFunctionPrint1to20
()
webserver/main.go:8
↓ 3 callersFunctionnormalResponse
(w http.ResponseWriter, r *http.Response)
video_server/web/client.go:56
↓ 3 callersFunctionsendResponse
(w http.ResponseWriter, sc int, resp string)
video_server/scheduler/response.go:8
↓ 2 callersFunctionGetUserCredential
(loginName string)
video_server/api/dbops/api.go:27
↓ 2 callersFunctionGetVideoInfo
(vid string)
video_server/api/dbops/api.go:107
↓ 2 callersFunctionNewRunner
(size int, longlived bool, d fn, e fn)
video_server/scheduler/taskrunner/runner.go:13
↓ 2 callersMethodStartAll
()
video_server/scheduler/taskrunner/runner.go:64
↓ 2 callersFunctiongetCookie
(cname)
video_server/templates/scripts/home.js:215
↓ 2 callersFunctionnoInMilli
()
video_server/api/session/ops.go:17
↓ 2 callersFunctionpopupNotificationMsg
(msg)
video_server/templates/scripts/home.js:264
↓ 2 callersFunctionrefreshComments
(vid)
video_server/templates/scripts/home.js:241
↓ 2 callersFunctionselectVideo
(vid)
video_server/templates/scripts/home.js:231
↓ 1 callersFunctionAddNewComments
(vid string, aid int, content string)
video_server/api/dbops/api.go:146
↓ 1 callersFunctionAddNewVideo
(aid int, name string)
video_server/api/dbops/api.go:81
↓ 1 callersFunctionAddUserCredential
(loginName string, pwd string)
video_server/api/dbops/api.go:12
↓ 1 callersFunctionDeleteUser
(loginName string, pwd string)
video_server/api/dbops/api.go:45
↓ 1 callersFunctionDeleteVideoInfo
(vid string)
video_server/api/dbops/api.go:131
↓ 1 callersMethodGetConn
()
video_server/streamserver/limiter.go:17
↓ 1 callersFunctionListComments
(vid string, from, to int)
video_server/api/dbops/api.go:166
↓ 1 callersFunctionNewConnLimiter
(cc int)
video_server/streamserver/limiter.go:10
↓ 1 callersFunctionNewMiddleWareHandler
(r *httprouter.Router)
video_server/api/main.go:13
↓ 1 callersFunctionNewMiddleWareHandler
(r *httprouter.Router, cc int)
video_server/streamserver/main.go:13
↓ 1 callersFunctionNewWorker
(interval time.Duration, r *Runner)
video_server/scheduler/taskrunner/trmain.go:10
↓ 1 callersFunctionPrepare
()
video_server/api/main.go:47
↓ 1 callersFunctionRegisterHandler
()
video_server/web/main.go:8
↓ 1 callersFunctionRegisterHandlers
()
video_server/scheduler/main.go:9
↓ 1 callersFunctionRegisterHandlers
()
video_server/api/main.go:25
↓ 1 callersFunctionRegisterHandlers
()
video_server/streamserver/main.go:30
↓ 1 callersMethodReleaseConn
()
video_server/streamserver/limiter.go:27
↓ 1 callersMethodServeHTTP
(w http.ResponseWriter, r * http.Request)
video_server/api/main.go:19
↓ 1 callersFunctionValidateUserSession
(r *http.Request)
video_server/api/auth.go:12
↓ 1 callersFunctioncreateVideo
(vname, callback)
video_server/templates/scripts/home.js:475
↓ 1 callersFunctiondeleteExpiredSession
(sid string)
video_server/api/session/ops.go:21
↓ 1 callersFunctiondeleteVideo
(vid string)
video_server/scheduler/taskrunner/tasks.go:29
↓ 1 callersFunctiondeleteVideo
(vid, callback)
video_server/templates/scripts/home.js:544
↓ 1 callersFunctiongetUserId
(callback)
video_server/templates/scripts/home.js:447
↓ 1 callersFunctionhtmlCommentListElement
(cid, author, content)
video_server/templates/scripts/home.js:278
↓ 1 callersFunctionhtmlVideoListElement
(vid, name, ctime)
video_server/templates/scripts/home.js:301
↓ 1 callersFunctioninitPage
(callback)
video_server/templates/scripts/home.js:181
↓ 1 callersFunctionlistAllComments
(vid, callback)
video_server/templates/scripts/home.js:615
↓ 1 callersFunctionlistAllVideos
(callback)
video_server/templates/scripts/home.js:512
↓ 1 callersFunctionpostComment
(vid, content, callback)
video_server/templates/scripts/home.js:577
↓ 1 callersFunctionregisterUser
(callback)
video_server/templates/scripts/home.js:352
↓ 1 callersFunctionrequest
(b *ApiBody, w http.ResponseWriter, r *http.Request)
video_server/web/client.go:18
↓ 1 callersFunctionsigninUser
(callback)
video_server/templates/scripts/home.js:401
↓ 1 callersMethodstartDispatch
()
video_server/scheduler/taskrunner/runner.go:25
↓ 1 callersMethodstartWorker
()
video_server/scheduler/taskrunner/trmain.go:17
FunctionAddNewVideo
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
video_server/api/handlers.go:101
FunctionAddVideoDeletionRecord
1. user -> api service -> delete video 2. api service -> scheduler -> write video deletion record 3. timer 4. timer -> runner -> read wvdr -> exec ->
video_server/scheduler/dbops/api.go:10
FunctionBenchmarkAll
func aaa(n int) int{ for n > 0{ n-- } return n } go test -bench=.
webserver/main_test.go:43
FunctionCreateUser
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
video_server/api/handlers.go:15
FunctionDelVideoDeletionRecord
(vid string)
video_server/scheduler/dbops/internal.go:33
FunctionDeleteSession
(sid string)
video_server/api/dbops/internal.go:85
FunctionDeleteVideo
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
video_server/api/handlers.go:151
FunctionGenerateNewSessionId
(un string)
video_server/api/session/ops.go:39
FunctionGetCurrentTimestampSec
()
video_server/api/utils/uuid.go:24
FunctionGetUser
(loginName string)
video_server/api/dbops/api.go:61
FunctionGetUserInfo
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
video_server/api/handlers.go:79
FunctionInsertSession
(sid string, ttl int64, uname string)
video_server/api/dbops/internal.go:11
FunctionIsSessionExpired
(sid string)
video_server/api/session/ops.go:51
FunctionListAllVideos
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
video_server/api/handlers.go:130
FunctionListVideoInfo
(uname string, from, to int)
video_server/api/dbops/api.go:194
FunctionLoadSessionsFromDB
()
video_server/api/session/ops.go:26
FunctionLogin
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
video_server/api/handlers.go:40
FunctionNewUUID
()
video_server/api/utils/uuid.go:11
FunctionPostComment
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
video_server/api/handlers.go:167
FunctionReadVideoDeletionRecord
(count int)
video_server/scheduler/dbops/internal.go:5
FunctionRetrieveAllSessions
()
video_server/api/dbops/internal.go:52
FunctionRetrieveSession
(sid string)
video_server/api/dbops/internal.go:27
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
video_server/streamserver/main.go:20
FunctionShowComments
(w http.ResponseWriter, r *http.Request, p httprouter.Params)
video_server/api/handlers.go:190
FunctionStart
()
video_server/scheduler/taskrunner/trmain.go:27
FunctionTestAll
(t *testing.T)
webserver/main_test.go:25
FunctionTestComments
(t *testing.T)
video_server/api/dbops/api_test.go:105
FunctionTestMain
(m *testing.M)
video_server/api/dbops/api_test.go:21
FunctionTestMain
(m *testing.M)
webserver/main_test.go:30
FunctionTestPrint
(t *testing.T)
webserver/main_test.go:8
FunctionTestPrint2
(t *testing.T)
webserver/main_test.go:17
FunctionTestRuner
(t *testing.T)
video_server/scheduler/taskrunner/runner_test.go:10
FunctionTestUserWorkFlow
(t *testing.T)
video_server/api/dbops/api_test.go:27
FunctionTestVideoWorkFlow
(t *testing.T)
video_server/api/dbops/api_test.go:67
FunctionVideoClearDispatcher
(dc dataChan)
video_server/scheduler/taskrunner/tasks.go:11
FunctionVideoClearExecutor
(dc dataChan)
video_server/scheduler/taskrunner/tasks.go:40
FunctionapiHandler
(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
video_server/web/handlers.go:74
FunctionfirstPage
(w http.ResponseWriter, r *http.Request)
webserver/main.go:16
FunctionhomeHandler
(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
video_server/web/handlers.go:24
Functioninit
()
video_server/scheduler/dbops/conn.go:13
Functioninit
()
video_server/api/dbops/conn.go:13
Functioninit
()
video_server/api/session/ops.go:13
Functioninit
()
video_server/web/client.go:14
Functionmain
()
video_server/scheduler/main.go:17
Functionmain
()
video_server/api/main.go:51
Functionmain
()
video_server/web/main.go:29
next →1–100 of 118, ranked by callers