dbops

package
v0.0.0-...-cbae104 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewComments

func AddNewComments(vid string, aid int, content string) error

func AddNewVideo

func AddNewVideo(aid int, name string) (*defs.VideoInfo, error)

func AddUserCredential

func AddUserCredential(loginName string, pwd string) error

func DeleteSession

func DeleteSession(sid string) error

func DeleteUser

func DeleteUser(loginName string, pwd string) error

func DeleteVideoInfo

func DeleteVideoInfo(vid string) error

func GetUser

func GetUser(loginName string) (*defs.User, error)

func GetUserCredential

func GetUserCredential(loginName string) (string, error)

func GetVideoInfo

func GetVideoInfo(vid string) (*defs.VideoInfo, error)

func InsertSession

func InsertSession(sid string, ttl int64, uname string) error

func ListComments

func ListComments(vid string, from, to int) ([]*defs.Comment, error)

func ListVideoInfo

func ListVideoInfo(uname string, from, to int) ([]*defs.VideoInfo, error)

func RetrieveAllSessions

func RetrieveAllSessions() (*sync.Map, error)

func RetrieveSession

func RetrieveSession(sid string) (*defs.SimpleSession, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL