Documentation ¶
Index ¶
- func AddNewComments(vid string, aid int, content string) error
- func AddNewVideo(aid int, name string) (*defs.VideoInfo, error)
- func AddUserCredential(loginName string, pwd string) error
- func DeleteSession(sid string) error
- func DeleteUser(loginName string, pwd string) error
- func DeleteVideoInfo(vid string) error
- func GetUser(loginName string) (*defs.User, error)
- func GetUserCredential(loginName string) (string, error)
- func GetVideoInfo(vid string) (*defs.VideoInfo, error)
- func InsertSession(sid string, ttl int64, uname string) error
- func ListComments(vid string, from, to int) ([]*defs.Comment, error)
- func ListVideoInfo(uname string, from, to int) ([]*defs.VideoInfo, error)
- func RetrieveAllSessions() (*sync.Map, error)
- func RetrieveSession(sid string) (*defs.SimpleSession, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserCredential ¶
func DeleteSession ¶
func DeleteUser ¶
func DeleteVideoInfo ¶
func GetUserCredential ¶
func RetrieveAllSessions ¶
func RetrieveSession ¶
func RetrieveSession(sid string) (*defs.SimpleSession, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.