db

package
v0.0.0-...-b18db6d Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: 0BSD Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TikTokDB

type TikTokDB struct {
	Lmdb *lmdb.LMDBClient
	// contains filtered or unexported fields
}

func New

func New(path string) *TikTokDB

func (*TikTokDB) Close

func (db *TikTokDB) Close()

func (*TikTokDB) GetAwemeList

func (db *TikTokDB) GetAwemeList(userID string) ([]scraperapi.Aweme, error)

func (*TikTokDB) GetUser

func (db *TikTokDB) GetUser(userID string) (*scraperapi.User, error)

func (*TikTokDB) GetUserIDList

func (db *TikTokDB) GetUserIDList() ([]string, error)

func (*TikTokDB) Open

func (db *TikTokDB) Open() error

func (*TikTokDB) SetAwemeList

func (db *TikTokDB) SetAwemeList(userID string, awemeList []scraperapi.Aweme) error

func (*TikTokDB) SetUser

func (db *TikTokDB) SetUser(userID string, user *scraperapi.User) error

func (*TikTokDB) SetUserIDList

func (db *TikTokDB) SetUserIDList(userIDList []string) error

Jump to

Keyboard shortcuts

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