dbops

package
v0.0.0-...-9f3545b Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCredential

func AddCredential(loginName string, pwd string) error

func AddNewComments

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

func AddNewVideo

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

func DeleteSession

func DeleteSession(sid string) error

func DeleteUser

func DeleteUser(loginName string, pwd string) error

func GetUserCredential

func GetUserCredential(loginName string) (string, error)

func InsertSession

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

func ListComments

func ListComments(videoId string, from int, to int) ([]*defs.Comments, error)

func RetrieveAllSession

func RetrieveAllSession() (*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