space

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: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	BlackList map[int64]struct{}
	// contains filtered or unexported fields
}

Service is space service

func New

func New(c *conf.Config) (s *Service)

New new space

func (*Service) AddContribute

func (s *Service) AddContribute(c context.Context, vmid int64, attrs *space.Attrs, items []*space.Item) (err error)

AddContribute func

func (*Service) Album

func (s *Service) Album(c context.Context, vmid int64, pos, size int) (res *space.AlbumList)

Album func

func (*Service) Bangumi

func (s *Service) Bangumi(c context.Context, mid, vmid int64, setting *space.Setting, pn, ps int) (res *space.BangumiList)

Bangumi get concern season

func (*Service) Clip

func (s *Service) Clip(c context.Context, vmid int64, pos, size int) (res *space.ClipList)

Clip func

func (*Service) CoinArcs

func (s *Service) CoinArcs(c context.Context, mid, vmid int64, setting *space.Setting, pn, ps int) (res *space.ArcList)

CoinArcs get coin archives.

func (*Service) Community

func (s *Service) Community(c context.Context, uid int64, pn, ps int, ak, platform string) (res *space.CommuList)

Community get community

func (*Service) Contribute

func (s *Service) Contribute(c context.Context, plat int8, build int, vmid int64, pn, ps int, now time.Time) (res *space.Contributes, err error)

Contribute func

func (*Service) Contribution

func (s *Service) Contribution(c context.Context, plat int8, build int, vmid int64, cursor *model.Cursor, now time.Time) (res *space.Contributes, err error)

Contribution func

func (*Service) LikeArcs

func (s *Service) LikeArcs(c context.Context, mid, vmid int64, setting *space.Setting, pn, ps int) (res *space.ArcList)

LikeArcs get like archives.

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping check server ok

func (*Service) Report

func (s *Service) Report(c context.Context, mid int64, reason, ak string) (err error)

Report func

func (*Service) Space

func (s *Service) Space(c context.Context, mid, vmid int64, plat int8, build int, pn, ps int, platform, device, mobiApp, name string, now time.Time) (sp *space.Space, err error)

Space aggregation space data.

func (*Service) UpArcs

func (s *Service) UpArcs(c context.Context, uid int64, pn, ps int, now time.Time) (res *space.ArcList)

UpArcs get upload archive .

func (*Service) UpArticles

func (s *Service) UpArticles(c context.Context, uid int64, pn, ps int) (res *space.ArticleList)

UpArticles get article.

Jump to

Keyboard shortcuts

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