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: 21 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 用的时候注意了!!!这个方法得到的稿件Stat不是最新的!!!

func (*Dao) Archive3

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

Archive3 get archive.

func (*Dao) Archives

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

Archives multi get archives.

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, parentMode int, buvid, from string, plat int8) (rec []*view.NewRelateRec, userFeature, returnCode string, dalaoExp int, 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, fnver, fnval, forceHost int, platform string) (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) Shot

func (d *Dao) Shot(c context.Context, aid, cid int64) (shot *archive.Videoshot, err error)

Shot get video shot.

func (*Dao) Stat

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

Stat get a archive stat.

func (*Dao) UpArcs3

func (d *Dao) UpArcs3(c context.Context, mid int64, pn, ps int) (as []*api.Arc, err error)

UpArcs3 get upper archives.

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.

func (*Dao) ViewRPC

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

ViewRPC is

func (*Dao) ViewsRPC

func (d *Dao) ViewsRPC(c context.Context, aids []int64) (avm map[int64]*archive.View3, err error)

ViewsRPC is

Jump to

Keyboard shortcuts

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