region

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: 14 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 {
	// contains filtered or unexported fields
}

func New

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

New a region service.

func (*Service) AddTag

func (s *Service) AddTag(c context.Context, mid, tid int64, now time.Time) (err error)

func (*Service) AddTagInfoc

func (s *Service) AddTagInfoc(mid int64, plat int8, build int, buvid, disid, ip, api string, rid int, tid int64, now time.Time)

func (*Service) CancelTag

func (s *Service) CancelTag(c context.Context, mid, tid int64, now time.Time) (err error)

func (*Service) CancelTagInfoc

func (s *Service) CancelTagInfoc(mid int64, plat int8, build int, buvid, disid, ip, api string, rid int, tid int64, now time.Time)

func (*Service) ChangeTagsInfoc

func (s *Service) ChangeTagsInfoc(mid int64, plat int8, build int, buvid, disid, ip, api string, tags []*tag.Tag, now time.Time)

func (*Service) HotTags

func (s *Service) HotTags(c context.Context, mid int64, rid int16, ver string, plat int8, now time.Time) (hs []*tag.Hot, version string, err error)

HotTags get hot tags of region id.

func (*Service) SubTags

func (s *Service) SubTags(c context.Context, mid int64, pn, ps int) (t *tag.SubTag)

func (*Service) TagsInfoc

func (s *Service) TagsInfoc(mid int64, plat int8, build int, buvid, disid, ip, api string, tags []*tag.Tag, now time.Time)

Jump to

Keyboard shortcuts

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