dbops

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MulanPSL-2.0 Imports: 8 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewComments added in v0.0.4

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 added in v0.0.4

func DeleteSession(sid string) error

func DeleteUser

func DeleteUser(loginName string, pwd string) error

func DeleteVideoInfo

func DeleteVideoInfo(vid string) error

func GetUserCredential

func GetUserCredential(loginName string) (string, error)

func GetVideoInfo

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

func InsertSession added in v0.0.4

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

func ListComments added in v0.0.4

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

func ListVideoInfo

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

func RetrieveAllSessions added in v0.0.4

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

func RetrieveSession added in v0.0.4

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