data

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
}

Service data service

func New

func New(c *conf.Config) *Service

New get service

func (*Service) CacheTrend

func (s *Service) CacheTrend(c context.Context, mid int64) (res *datamodel.ViewerTrendInfo, err error)

CacheTrend get trend from mc.

func (*Service) GetFansSummary

func (s *Service) GetFansSummary(c context.Context, arg *datamodel.GetFansSummaryArg) (result *datamodel.FansSummaryResult, err error)

GetFansSummary get fan summary

func (*Service) GetRelationFansDay

GetRelationFansDay get fan day history

func (*Service) GetTags

func (s *Service) GetTags(c context.Context, ids ...int64) (result map[int64]*tag.Meta)

GetTags get tag

func (*Service) GetUpArchiveInfo

func (s *Service) GetUpArchiveInfo(c context.Context, arg *datamodel.GetUpArchiveInfoArg) (result *datamodel.GetUpArchiveInfoResult, err error)

GetUpArchiveInfo get up archive info

func (*Service) GetUpArchiveTagInfo

func (s *Service) GetUpArchiveTagInfo(c context.Context, arg *datamodel.GetUpArchiveTagInfoArg) (result []*datamodel.ViewerTagData, err error)

GetUpArchiveTagInfo get up archive tag info

func (*Service) GetUpArchiveTypeInfo

func (s *Service) GetUpArchiveTypeInfo(c context.Context, arg *datamodel.GetUpArchiveTypeInfoArg) (result *datamodel.UpArchiveTypeData, err error)

GetUpArchiveTypeInfo get type info

func (*Service) GetUpViewInfo

func (s *Service) GetUpViewInfo(c context.Context, arg *datamodel.GetUpViewInfoArg) (result *ViewData, err error)

GetUpViewInfo get view info by arg

func (*Service) GetViewData

func (s *Service) GetViewData(c context.Context, mid int64) (result ViewData, err error)

GetViewData get all view data

func (*Service) ViewerArea

func (s *Service) ViewerArea(c context.Context, mid int64) (res *datamodel.ViewerAreaInfo, err error)

ViewerArea get up viewer area data.

func (*Service) ViewerBase

func (s *Service) ViewerBase(c context.Context, mid int64) (res *datamodel.ViewerBaseInfo, err error)

ViewerBase get up viewer base data.

type ViewData

type ViewData struct {
	Base  *datamodel.ViewerBaseInfo  `json:"viewer_base"`
	Trend *datamodel.ViewerTrendInfo `json:"viewer_trend"`
	Area  *datamodel.ViewerAreaInfo  `json:"viewer_area"`
}

ViewData view data for up

Jump to

Keyboard shortcuts

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