Documentation ¶
Index ¶
- func AddUserInformation(loginName string, pwd string) error
- func AddcommentInformation(vid string, aid int, content string) error
- func AddvideoInformation(aid int, name string) (*model.VideoInfo, error)
- func DeleteSession(sid string) error
- func DeleteUser(loginName string, pwd string) error
- func Deletevideo(vid string) error
- func GetUserInformation(loginName string) (string, error)
- func GetvideoInformation(vid string) (*model.VideoInfo, error)
- func InsertSession(sid string, ttl int64, uname string) error
- func ListComments(vid string, from, to int) ([]*model.Comment, error)
- func RetrieveAllSessions() (*sync.Map, error)
- func RetrieveSession(sid string) (*model.SimpleSession, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserInformation ¶
func DeleteUser ¶
func Deletevideo ¶
func GetUserInformation ¶
func RetrieveAllSessions ¶
RetrieveAllSessions 检索所有会话 *
@*sync.Map 把session 放到 map队列中返回 map 充当了 Catce
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.