archive

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: 22 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 archive dao.

func New

func New(c *conf.Config) (d *Dao)

New new a archive dao.

func (*Dao) AddRelatesCache

func (d *Dao) AddRelatesCache(aid int64, rls []*view.Relate)

AddRelatesCache add relates

func (*Dao) Archive

func (d *Dao) Archive(c context.Context, aid int64) (a *api.Arc, err error)

Archive get archive mc->rpc.

func (*Dao) Archive3

func (d *Dao) Archive3(c context.Context, aid int64) (a *api.Arc, err error)

Archive3 get archive.

func (*Dao) ArchiveCache

func (d *Dao) ArchiveCache(c context.Context, aid int64) (arc *arcmdl.Info, err error)

ArchiveCache is

func (*Dao) Archives

func (d *Dao) Archives(c context.Context, aids []int64) (am map[int64]*api.Arc, err error)

Archives multi get archives.

func (*Dao) ArchivesWithPlayer

func (d *Dao) ArchivesWithPlayer(c context.Context, aids []int64, qn int, platform string, fnver, fnval int) (res map[int64]*archive.ArchiveWithPlayer, err error)

ArchivesWithPlayer archives witch player

func (*Dao) Commercial

func (d *Dao) Commercial(c context.Context, aid int64) (gameID int64, err error)

Commercial is

func (*Dao) Description

func (d *Dao) Description(c context.Context, aid int64) (desc string, err error)

Description get archive description by aid.

func (*Dao) NewRelateAids

func (d *Dao) NewRelateAids(c context.Context, aid, mid int64, build int, buvid, from string, plat int8) (rec []*view.NewRelateRec, userFeature, returnCode string, err error)

NewRelateAids relate online recommend 在线实时推荐

func (*Dao) Ping

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

Ping ping check memcache connection

func (*Dao) PlayerInfos

func (d *Dao) PlayerInfos(c context.Context, cids []int64, qn int, platform string, fnver, fnval int) (pm map[uint32]*archive.BvcVideoItem, err error)

PlayerInfos cid with player info

func (*Dao) Progress

func (d *Dao) Progress(c context.Context, aid, mid int64) (h *view.History, err error)

Progress is archive plays progress .

func (*Dao) RelateAids

func (d *Dao) RelateAids(c context.Context, aid int64) (aids []int64, err error)

RelateAids get relate by aid

func (*Dao) RelatesCache

func (d *Dao) RelatesCache(c context.Context, aid int64) (rls []*view.Relate, err error)

RelatesCache get relates.

func (*Dao) Stat

func (d *Dao) Stat(c context.Context, aid int64) (st *api.Stat, err error)

Stat get a archive stat.

func (*Dao) UpCount2

func (d *Dao) UpCount2(c context.Context, mid int64) (cnt int, err error)

UpCount2 get upper count.

func (*Dao) View3

func (d *Dao) View3(c context.Context, aid int64) (v *archive.View3, err error)

View3 view archive with pages pb.

func (*Dao) ViewCache

func (d *Dao) ViewCache(c context.Context, aid int64) (vs *archive.View3, err error)

ViewCache get view static data from cache if cache missed from rpc.

func (*Dao) ViewContributeCache

func (d *Dao) ViewContributeCache(c context.Context, mid int64) (aids []int64, err error)

ViewContributeCache get archive cache.

Jump to

Keyboard shortcuts

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