bplus

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: 17 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 favorite dao

func New

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

New initial favorite dao

func (*Dao) AddContributeCache

func (d *Dao) AddContributeCache(c context.Context, vmid int64, attrs *space.Attrs, items []*space.Item) (err error)

AddContributeCache .

func (*Dao) AlbumDetail

func (d *Dao) AlbumDetail(c context.Context, vmid int64, ids []int64) (as map[int64]*bplus.Album, err error)

AlbumDetail .

func (*Dao) Albums

func (d *Dao) Albums(c context.Context, vmid int64, pos, size int) (as []*bplus.Album, more, offset int, err error)

Albums get album list form api .

func (*Dao) AllAlbum

func (d *Dao) AllAlbum(c context.Context, vmid int64, size int) (as []*bplus.Album, count int, err error)

AllAlbum .

func (*Dao) AllClip

func (d *Dao) AllClip(c context.Context, vmid int64, size int) (cs []*bplus.Clip, count int, err error)

AllClip .

func (*Dao) AttrCache

func (d *Dao) AttrCache(c context.Context, vmid int64) (attrs *space.Attrs, err error)

AttrCache .

func (*Dao) ClipDetail

func (d *Dao) ClipDetail(c context.Context, ids []int64) (cs map[int64]*bplus.Clip, err error)

ClipDetail .

func (*Dao) Clips

func (d *Dao) Clips(c context.Context, vmid int64, pos, size int) (cs []*bplus.Clip, more, offset int, err error)

Clips .

func (*Dao) Dynamic

func (d *Dao) Dynamic(c context.Context, uid int64) (has bool, err error)

Dynamic .

func (*Dao) DynamicCount

func (d *Dao) DynamicCount(c context.Context, mid int64) (count int64, err error)

DynamicCount return dynamic count

func (*Dao) DynamicDetails

func (d *Dao) DynamicDetails(c context.Context, ids []int64, from string) (details map[int64]*bplus.Detail, err error)

DynamicDetails get dynamic details by ids.

func (*Dao) FavAlbums

func (d *Dao) FavAlbums(c context.Context, mid int64, accessKey, actionKey, device, mobiApp, platform string, build, pn, ps int) (as *bplus.Albums, err error)

FavAlbums get fav from B+ api.

func (*Dao) FavClips

func (d *Dao) FavClips(c context.Context, mid int64, accessKey, actionKey, device, mobiApp, platform string, build, pn, ps int) (cs *bplus.Clips, err error)

FavClips get fav from B+ api.

func (*Dao) GroupsCount

func (d *Dao) GroupsCount(c context.Context, mid, vmid int64) (count int, err error)

GroupsCount .

func (*Dao) NotifyContribute

func (d *Dao) NotifyContribute(c context.Context, vmid int64, attrs *space.Attrs, ctime xtime.Time) (err error)

NotifyContribute .

func (*Dao) RangeContributeCache

func (d *Dao) RangeContributeCache(c context.Context, vmid int64, pn, ps int) (items []*space.Item, err error)

RangeContributeCache .

func (*Dao) RangeContributionCache

func (d *Dao) RangeContributionCache(c context.Context, vmid int64, cursor *model.Cursor) (items []*space.Item, err error)

Jump to

Keyboard shortcuts

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