SYMBOL INDEX (151 symbols across 35 files) FILE: video_server/api/auth.go function ValidateUserSession (line 12) | func ValidateUserSession(r *http.Request) bool { function ValidateUser (line 28) | func ValidateUser(w http.ResponseWriter, r *http.Request) bool { FILE: video_server/api/dbops/api.go function AddUserCredential (line 12) | func AddUserCredential(loginName string, pwd string) error { function GetUserCredential (line 27) | func GetUserCredential(loginName string) (string, error) { function DeleteUser (line 45) | func DeleteUser(loginName string, pwd string) error { function GetUser (line 61) | func GetUser(loginName string) (*defs.User, error) { function AddNewVideo (line 81) | func AddNewVideo(aid int, name string) (*defs.VideoInfo, error) { function GetVideoInfo (line 107) | func GetVideoInfo(vid string) (*defs.VideoInfo, error) { function DeleteVideoInfo (line 131) | func DeleteVideoInfo(vid string) error { function AddNewComments (line 146) | func AddNewComments(vid string, aid int, content string) error { function ListComments (line 166) | func ListComments(vid string, from, to int) ([]*defs.Comment, error) { function ListVideoInfo (line 194) | func ListVideoInfo(uname string, from, to int) ([]*defs.VideoInfo, error) { FILE: video_server/api/dbops/api_test.go function clearTables (line 14) | func clearTables() { function TestMain (line 21) | func TestMain(m *testing.M) { function TestUserWorkFlow (line 27) | func TestUserWorkFlow(t *testing.T) { function testAddUser (line 35) | func testAddUser(t *testing.T) { function testGetUser (line 42) | func testGetUser(t *testing.T) { function testDeleteUser (line 49) | func testDeleteUser(t *testing.T) { function testRegetUser (line 56) | func testRegetUser(t *testing.T) { function TestVideoWorkFlow (line 67) | func TestVideoWorkFlow(t *testing.T) { function testAddVideoInfo (line 76) | func testAddVideoInfo(t *testing.T) { function testGetVideoInfo (line 84) | func testGetVideoInfo(t *testing.T) { function testDeleteVideoInfo (line 91) | func testDeleteVideoInfo(t *testing.T) { function testRegetVideoInfo (line 98) | func testRegetVideoInfo(t *testing.T) { function TestComments (line 105) | func TestComments(t *testing.T) { function testAddComments (line 112) | func testAddComments(t *testing.T) { function testListComments (line 124) | func testListComments(t *testing.T) { FILE: video_server/api/dbops/conn.go function init (line 13) | func init() { FILE: video_server/api/dbops/internal.go function InsertSession (line 11) | func InsertSession(sid string, ttl int64, uname string) error { function RetrieveSession (line 27) | func RetrieveSession(sid string) (*defs.SimpleSession, error) { function RetrieveAllSessions (line 52) | func RetrieveAllSessions() (*sync.Map, error) { function DeleteSession (line 85) | func DeleteSession(sid string) error { FILE: video_server/api/defs/apidef.go type UserCredential (line 4) | type UserCredential struct type NewComment (line 9) | type NewComment struct type NewVideo (line 14) | type NewVideo struct type SignedUp (line 20) | type SignedUp struct type UserSession (line 25) | type UserSession struct type UserInfo (line 30) | type UserInfo struct type SignedIn (line 34) | type SignedIn struct type VideosInfo (line 39) | type VideosInfo struct type Comments (line 43) | type Comments struct type User (line 49) | type User struct type VideoInfo (line 55) | type VideoInfo struct type Comment (line 62) | type Comment struct type SimpleSession (line 69) | type SimpleSession struct FILE: video_server/api/defs/errs.go type Err (line 3) | type Err struct type ErrResponse (line 8) | type ErrResponse struct FILE: video_server/api/handlers.go function CreateUser (line 15) | func CreateUser(w http.ResponseWriter, r *http.Request, p httprouter.Par... function Login (line 40) | func Login(w http.ResponseWriter, r *http.Request, p httprouter.Params) { function GetUserInfo (line 79) | func GetUserInfo(w http.ResponseWriter, r *http.Request, p httprouter.Pa... function AddNewVideo (line 101) | func AddNewVideo(w http.ResponseWriter, r *http.Request, p httprouter.Pa... function ListAllVideos (line 130) | func ListAllVideos(w http.ResponseWriter, r *http.Request, p httprouter.... function DeleteVideo (line 151) | func DeleteVideo(w http.ResponseWriter, r *http.Request, p httprouter.Pa... function PostComment (line 167) | func PostComment(w http.ResponseWriter, r *http.Request, p httprouter.Pa... function ShowComments (line 190) | func ShowComments(w http.ResponseWriter, r *http.Request, p httprouter.P... FILE: video_server/api/main.go type middleWareHandler (line 9) | type middleWareHandler struct method ServeHTTP (line 19) | func (m middleWareHandler) ServeHTTP(w http.ResponseWriter, r * http.R... function NewMiddleWareHandler (line 13) | func NewMiddleWareHandler(r *httprouter.Router) http.Handler { function RegisterHandlers (line 25) | func RegisterHandlers() *httprouter.Router { function Prepare (line 47) | func Prepare() { function main (line 51) | func main() { FILE: video_server/api/response.go function sendErrorResponse (line 10) | func sendErrorResponse(w http.ResponseWriter, errResp defs.ErrResponse) { function sendNormalResponse (line 17) | func sendNormalResponse(w http.ResponseWriter, resp string, sc int) { FILE: video_server/api/session/ops.go function init (line 13) | func init() { function noInMilli (line 17) | func noInMilli() int64 { function deleteExpiredSession (line 21) | func deleteExpiredSession(sid string) { function LoadSessionsFromDB (line 26) | func LoadSessionsFromDB() { function GenerateNewSessionId (line 39) | func GenerateNewSessionId(un string) string { function IsSessionExpired (line 51) | func IsSessionExpired(sid string) (string, bool) { FILE: video_server/api/utils/uuid.go function NewUUID (line 11) | func NewUUID() (string, error) { function GetCurrentTimestampSec (line 24) | func GetCurrentTimestampSec() int { FILE: video_server/scheduler/dbops/api.go function AddVideoDeletionRecord (line 10) | func AddVideoDeletionRecord(vid string) error { FILE: video_server/scheduler/dbops/conn.go function init (line 13) | func init() { FILE: video_server/scheduler/dbops/internal.go function ReadVideoDeletionRecord (line 5) | func ReadVideoDeletionRecord(count int) ([]string, error) { function DelVideoDeletionRecord (line 33) | func DelVideoDeletionRecord(vid string) error { FILE: video_server/scheduler/handlers.go function vidDelRecHandler (line 9) | func vidDelRecHandler(w http.ResponseWriter, r *http.Request, p httprout... FILE: video_server/scheduler/main.go function RegisterHandlers (line 9) | func RegisterHandlers() *httprouter.Router { function main (line 17) | func main() { FILE: video_server/scheduler/response.go function sendResponse (line 8) | func sendResponse(w http.ResponseWriter, sc int, resp string) { FILE: video_server/scheduler/taskrunner/defs.go constant READY_TO_DISPATCH (line 4) | READY_TO_DISPATCH = "d" constant READY_TO_EXCUTE (line 5) | READY_TO_EXCUTE = "e" constant CLOSE (line 6) | CLOSE = "c" constant VIDEO_PATH (line 8) | VIDEO_PATH = "./videos/" type controlChan (line 11) | type controlChan type dataChan (line 13) | type dataChan type fn (line 15) | type fn FILE: video_server/scheduler/taskrunner/runner.go type Runner (line 3) | type Runner struct method startDispatch (line 25) | func (r *Runner) startDispatch() { method StartAll (line 64) | func (r *Runner) StartAll() { function NewRunner (line 13) | func NewRunner(size int, longlived bool, d fn, e fn) *Runner { FILE: video_server/scheduler/taskrunner/runner_test.go function TestRuner (line 10) | func TestRuner(t *testing.T) { FILE: video_server/scheduler/taskrunner/tasks.go function VideoClearDispatcher (line 11) | func VideoClearDispatcher(dc dataChan) error { function deleteVideo (line 29) | func deleteVideo(vid string) error { function VideoClearExecutor (line 40) | func VideoClearExecutor(dc dataChan) error { FILE: video_server/scheduler/taskrunner/trmain.go type Worker (line 5) | type Worker struct method startWorker (line 17) | func (w *Worker) startWorker() { function NewWorker (line 10) | func NewWorker(interval time.Duration, r *Runner) *Worker { function Start (line 27) | func Start() { FILE: video_server/streamserver/defs.go constant VIDEO_DIR (line 4) | VIDEO_DIR = "./videos/" constant MAX_UPLOAD_SIZE (line 5) | MAX_UPLOAD_SIZE = 50 * 1024 * 1024 FILE: video_server/streamserver/handlers.go function testPageHandler (line 14) | func testPageHandler(w http.ResponseWriter, r *http.Request, p httproute... function streamHandler (line 20) | func streamHandler(w http.ResponseWriter, r *http.Request, p httprouter.... function uploadHandler (line 37) | func uploadHandler(w http.ResponseWriter, r *http.Request, p httprouter.... FILE: video_server/streamserver/limiter.go type ConnLimiter (line 5) | type ConnLimiter struct method GetConn (line 17) | func (cl *ConnLimiter) GetConn() bool { method ReleaseConn (line 27) | func (cl *ConnLimiter) ReleaseConn() { function NewConnLimiter (line 10) | func NewConnLimiter(cc int) *ConnLimiter { FILE: video_server/streamserver/main.go type middleWareHandler (line 8) | type middleWareHandler struct method ServeHTTP (line 20) | func (m middleWareHandler) ServeHTTP(w http.ResponseWriter, r *http.Re... function NewMiddleWareHandler (line 13) | func NewMiddleWareHandler(r *httprouter.Router, cc int) http.Handler { function RegisterHandlers (line 30) | func RegisterHandlers() *httprouter.Router { function main (line 41) | func main() { FILE: video_server/streamserver/response.go function sendErrorResponse (line 8) | func sendErrorResponse(w http.ResponseWriter, sc int, errMsg string) { FILE: video_server/templates/scripts/home.js function initPage (line 181) | function initPage(callback) { function setCookie (line 208) | function setCookie(cname, cvalue, exmin) { function getCookie (line 215) | function getCookie(cname) { function selectVideo (line 231) | function selectVideo(vid) { function refreshComments (line 241) | function refreshComments(vid) { function popupNotificationMsg (line 264) | function popupNotificationMsg(msg) { function popupErrorMsg (line 271) | function popupErrorMsg(msg) { function htmlCommentListElement (line 278) | function htmlCommentListElement(cid, author, content) { function htmlVideoListElement (line 301) | function htmlVideoListElement(vid, name, ctime) { function registerUser (line 352) | function registerUser(callback) { function signinUser (line 401) | function signinUser(callback) { function getUserId (line 447) | function getUserId(callback) { function createVideo (line 475) | function createVideo(vname, callback) { function listAllVideos (line 512) | function listAllVideos(callback) { function deleteVideo (line 544) | function deleteVideo(vid, callback) { function postComment (line 577) | function postComment(vid, content, callback) { function listAllComments (line 615) | function listAllComments(vid, callback) { FILE: video_server/web/client.go function init (line 14) | func init() { function request (line 18) | func request(b *ApiBody, w http.ResponseWriter, r *http.Request) { function normalResponse (line 56) | func normalResponse(w http.ResponseWriter, r *http.Response) { FILE: video_server/web/defs.go type ApiBody (line 3) | type ApiBody struct type Err (line 9) | type Err struct FILE: video_server/web/handlers.go type HomePage (line 16) | type HomePage struct type UserPage (line 20) | type UserPage struct function homeHandler (line 24) | func homeHandler(w http.ResponseWriter, r *http.Request, ps httprouter.P... function userHomeHandler (line 47) | func userHomeHandler(w http.ResponseWriter, r *http.Request, ps httprout... function apiHandler (line 74) | func apiHandler(w http.ResponseWriter, r *http.Request, ps httprouter.P... function proxyHandler (line 93) | func proxyHandler(w http.ResponseWriter, r *http.Request, ps httprouter.... FILE: video_server/web/main.go function RegisterHandler (line 8) | func RegisterHandler() *httprouter.Router { function main (line 29) | func main() { FILE: webserver/main.go function Print1to20 (line 8) | func Print1to20() int{ function firstPage (line 16) | func firstPage(w http.ResponseWriter, r *http.Request){ function main (line 20) | func main(){ FILE: webserver/main_test.go function TestPrint (line 8) | func TestPrint(t *testing.T){ function TestPrint2 (line 17) | func TestPrint2(t *testing.T){ function TestAll (line 25) | func TestAll(t *testing.T){ function TestMain (line 30) | func TestMain(m *testing.M){ function BenchmarkAll (line 43) | func BenchmarkAll(b * testing.B){