view

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: 39 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 {

	// mamager cache
	RelateCache []*manager.Relate

	// view relate game from AI
	RelateGameCache map[int64]int64
	// contains filtered or unexported fields
}

Service is view service

func New

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

New new archive

func (*Service) Ping

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

Ping is dao ping.

func (*Service) RelateInfoc

func (s *Service) RelateInfoc(mid, aid int64, plat int, trackid, build, buvid, disid, ip, api, returnCode, userFeature, from string, rls []*view.Relate, now time.Time, isRec int8)

RelateInfoc Relate Infoc

func (*Service) View

func (s *Service) View(c context.Context, mid, aid, movieID int64, plat int8, build int, ak, mobiApp, device, buvid, cdnIP, network, adExtra, from string, now time.Time, locale string) (v *view.View, err error)

View all view data.

func (*Service) ViewInfoc

func (s *Service) ViewInfoc(mid int64, plat int, trackid, aid, ip, api, build, buvid, disid, from string, now time.Time, err error, autoplay int)

ViewInfoc view infoc

func (*Service) ViewPage

func (s *Service) ViewPage(c context.Context, mid, aid, movieID int64, plat int8, build int, ak, mobiApp, device, cdnIP string, nMovie bool, now time.Time, locale string) (v *view.View, err error)

ViewPage view page data.

Jump to

Keyboard shortcuts

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