card

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao is card dao.

func New

func New(c *conf.Config) *Dao

New is card dao new.

func (*Dao) AddChannelCardCache

func (d *Dao) AddChannelCardCache(c context.Context, buvid, md5 string, channelID int64, now time.Time) (err error)

AddChannelCardCache add user buvid and cardID cache

func (*Dao) Card

func (d *Dao) Card(ctx context.Context, now time.Time) (res map[int64][]*card.Card, err error)

Card channel card

func (*Dao) CardPlat

func (d *Dao) CardPlat(ctx context.Context) (res map[string][]*card.CardPlat, err error)

CardPlat channel card plat

func (*Dao) CardSet

func (d *Dao) CardSet(ctx context.Context) (res map[int64]*operate.CardSet, err error)

CardSet card set

func (*Dao) ChannelCardCache

func (d *Dao) ChannelCardCache(c context.Context, buvid string, channelID int64) (md5 string, err error)

ChannelCardCache user buvid channel card

func (*Dao) PingDB

func (d *Dao) PingDB(c context.Context) (err error)

PingDB ping db

func (*Dao) UpCard

func (d *Dao) UpCard(ctx context.Context) (res map[int64]*operate.Follow, err error)

UpCard upper

Jump to

Keyboard shortcuts

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