show

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: 55 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 is show service.

func New

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

New new a show service.

func (*Service) AdIsPost

func (s *Service) AdIsPost() int

IsPost Get or Post

func (*Service) Audit

func (s *Service) Audit(c context.Context, mobiApp string, plat int8, build int) (ss []*show.Show, ok bool)

GetAudit check audit plat and ip, then return audit data.

func (*Service) AuditChild

func (s *Service) AuditChild(c context.Context, mobiApp string, plat int8, build int) (res []*show.Item, ok bool)

func (*Service) AuditFeed

func (s *Service) AuditFeed(c context.Context, mobiApp string, plat int8, build int) (res []*feed.Item, ok bool)

AuditFeed check audit plat and ip, then return audit data.

func (*Service) AuditFeed2

func (s *Service) AuditFeed2(c context.Context, mobiApp string, plat int8, build int) (res []cardm.Handler, ok bool)

AuditFeed check audit plat and ip, then return audit data.

func (*Service) BangumiChange

func (s *Service) BangumiChange(c context.Context, rand int, plat int8) (sis []*show.Item)

BangumiChange change show bangumi data.

func (*Service) Change

func (s *Service) Change(c context.Context, mid int64, build int, plat int8, rand int, buvid, ip, network, mobiApp, device string) (sis []*show.Item)

Change change display show data.

func (*Service) Close

func (s *Service) Close() error

Close dao

func (*Service) CpmAll

func (s *Service) CpmAll() int

GetCpm All

func (*Service) CpmMid

func (s *Service) CpmMid() []int

GetCpm percentage

func (*Service) CpmNum

func (s *Service) CpmNum() int

GetCpm percentage

func (*Service) CpmRcmmndAll

func (s *Service) CpmRcmmndAll() int

CpmRcmmnd All

func (*Service) CpmRcmmndMid

func (s *Service) CpmRcmmndMid() []int

CpmRcmmndMid Mid

func (*Service) Dislike

func (s *Service) Dislike(c context.Context, mid int64, plat int8, id int64, buvid, mobiApp, device, gt, ip string) (si *show.Item)

Dislike dislike show data

func (*Service) Display

func (s *Service) Display(c context.Context, mid int64, plat int8, build int, buvid, channel, ip, ak, network, mobiApp,
	device, language, adExtra string, isTmp bool, now time.Time) (res []*show.Show)

Display display show data.

func (*Service) FeedIndex

func (s *Service) FeedIndex(c context.Context, mid, idx int64, plat int8, build, loginEvent int, lastParam, mobiApp, device, buvid string, now time.Time) (res []*feed.Item)

FeedIndex feed index

func (*Service) FeedIndex2

func (s *Service) FeedIndex2(c context.Context, mid, idx int64, plat int8, build, loginEvent int, lastParam, mobiApp, device, buvid string, now time.Time) (res []cardm.Handler, ver string, err error)

FeedIndex feed index

func (*Service) GetRcmmndGroup

func (s *Service) GetRcmmndGroup() map[string]int

GetRcmmndGroup get rcmmnd group data.

func (*Service) GetRcmmndHost

func (s *Service) GetRcmmndHost() map[string][]string

GetRcmmndHost get rcmmnd host data.

func (*Service) Index

func (s *Service) Index(c context.Context, mid int64, plat int8, build int, buvid, channel, ip, ak, network, mobiApp,
	device, language, adExtra string, isTmp bool, now time.Time) (res []*show.Show)

func (*Service) Infoc

func (s *Service) Infoc(mid int64, plat int8, buvid, disid, ip, api string, items []*show.Item, now time.Time)

Infoc write data for Hadoop do analytics

func (*Service) LiveChange

func (s *Service) LiveChange(c context.Context, mid int64, ak, ip string, rand int, now time.Time) (sis []*show.Item)

LiveChange live change.

func (*Service) PopularCardTenList

func (s *Service) PopularCardTenList(c context.Context, i int) (res []*card.PopularCard)

PopularCardList cards

func (*Service) RankCard

func (s *Service) RankCard() (ranks []*rank.Rank, aids []int64)

func (*Service) RcmmndNum

func (s *Service) RcmmndNum() int

RcmmndNum percentage

func (*Service) RcmmndOn

func (s *Service) RcmmndOn() bool

GetRcmmndOn

func (*Service) RegionChange

func (s *Service) RegionChange(c context.Context, rid, rand int, plat int8, build int, mobiApp string) (sis []*show.Item)

RegionChange change show region data.

func (*Service) RegionDisplay

func (s *Service) RegionDisplay(c context.Context, mid int64, plat int8, build int, buvid, channel, ip, ak, network, mobiApp,
	device, language, adExtra string, isTmp bool, now time.Time) (res []*show.Show)

RegionDisplay display region show data.

func (*Service) SetAdIsPost

func (s *Service) SetAdIsPost(isPost bool)

SetIsPost Get or Post

func (*Service) SetCpmAll

func (s *Service) SetCpmAll(isAll bool)

SetCpm All

func (*Service) SetCpmMid

func (s *Service) SetCpmMid(mid int64)

SetCpm percentage 0~100

func (*Service) SetCpmNum

func (s *Service) SetCpmNum(num int)

SetCpm percentage 0~100

func (*Service) SetCpmRcmmndAll

func (s *Service) SetCpmRcmmndAll(isAll bool)

SetCpmRcmmnd All

func (*Service) SetCpmRcmmndMid

func (s *Service) SetCpmRcmmndMid(mid int64)

SetCpmRcmmndMid Mid

func (*Service) SetRcmmndGroup

func (s *Service) SetRcmmndGroup(m int64, g int)

SetRcmmndGroup set rcmmnd group data.

func (*Service) SetRcmmndHost

func (s *Service) SetRcmmndHost(g int, hosts []string)

SetRcmmndHost set rcmmnd host data.

func (*Service) SetRcmmndNum

func (s *Service) SetRcmmndNum(num int)

SetRcmmndNum percentage 0~100

func (*Service) SetRcmmndOn

func (s *Service) SetRcmmndOn(on bool)

SetRcmmndOn

func (*Service) Widget

func (s *Service) Widget(c context.Context, plat int8) (res []*show.Item)

Widget

Jump to

Keyboard shortcuts

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