Documentation ¶
Overview ¶
* @Descripttion: * @version: * @Author: congsir * @Date: 2022-01-04 21:42:33 * @LastEditors: Please set LastEditors * @LastEditTime: 2022-01-18 17:59:05
* @Descripttion: * @version: * @Author: congsir * @Date: 2022-01-04 09:56:00 * @LastEditors: Please set LastEditors * @LastEditTime: 2022-01-04 21:53:41
* @Descripttion: * @version: * @Author: congsir * @Date: 2022-01-05 12:13:37 * @LastEditors: Please set LastEditors * @LastEditTime: 2022-01-18 17:59:37
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 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 AddNewComments ¶ added in v0.0.4
func AddUserCredential ¶
func DeleteSession ¶ added in v0.0.4
func DeleteUser ¶
func DeleteVideoInfo ¶
func GetUserCredential ¶
func ListComments ¶ added in v0.0.4
func RetrieveAllSessions ¶ added in v0.0.4
func RetrieveSession ¶ added in v0.0.4
func RetrieveSession(sid string) (*defs.SimpleSession, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.