Documentation ¶
Index ¶
- type Service
- func (s *Service) AdIsPost() int
- func (s *Service) Audit(c context.Context, mobiApp string, plat int8, build int) (ss []*show.Show, ok bool)
- func (s *Service) AuditChild(c context.Context, mobiApp string, plat int8, build int) (res []*show.Item, ok bool)
- func (s *Service) AuditFeed(c context.Context, mobiApp string, plat int8, build int) (res []*feed.Item, ok bool)
- func (s *Service) AuditFeed2(c context.Context, mobiApp string, plat int8, build int) (res []cardm.Handler, ok bool)
- func (s *Service) BangumiChange(c context.Context, rand int, plat int8) (sis []*show.Item)
- func (s *Service) Change(c context.Context, mid int64, build int, plat int8, rand int, ...) (sis []*show.Item)
- func (s *Service) Close() error
- func (s *Service) CpmAll() int
- func (s *Service) CpmMid() []int
- func (s *Service) CpmNum() int
- func (s *Service) CpmRcmmndAll() int
- func (s *Service) CpmRcmmndMid() []int
- func (s *Service) Dislike(c context.Context, mid int64, plat int8, id int64, ...) (si *show.Item)
- func (s *Service) Display(c context.Context, mid int64, plat int8, build int, ...) (res []*show.Show)
- func (s *Service) FeedIndex(c context.Context, mid, idx int64, plat int8, build, loginEvent int, ...) (res []*feed.Item)
- func (s *Service) FeedIndex2(c context.Context, mid, idx int64, plat int8, build, loginEvent int, ...) (res []cardm.Handler, ver string, err error)
- func (s *Service) GetRcmmndGroup() map[string]int
- func (s *Service) GetRcmmndHost() map[string][]string
- func (s *Service) Index(c context.Context, mid int64, plat int8, build int, ...) (res []*show.Show)
- func (s *Service) Infoc(mid int64, plat int8, buvid, disid, ip, api string, items []*show.Item, ...)
- func (s *Service) LiveChange(c context.Context, mid int64, ak, ip string, rand int, now time.Time) (sis []*show.Item)
- func (s *Service) PopularCardTenList(c context.Context, i int) (res []*card.PopularCard)
- func (s *Service) RankCard() (ranks []*rank.Rank, aids []int64)
- func (s *Service) RcmmndNum() int
- func (s *Service) RcmmndOn() bool
- func (s *Service) RegionChange(c context.Context, rid, rand int, plat int8, build int, mobiApp string) (sis []*show.Item)
- func (s *Service) RegionDisplay(c context.Context, mid int64, plat int8, build int, ...) (res []*show.Show)
- func (s *Service) SetAdIsPost(isPost bool)
- func (s *Service) SetCpmAll(isAll bool)
- func (s *Service) SetCpmMid(mid int64)
- func (s *Service) SetCpmNum(num int)
- func (s *Service) SetCpmRcmmndAll(isAll bool)
- func (s *Service) SetCpmRcmmndMid(mid int64)
- func (s *Service) SetRcmmndGroup(m int64, g int)
- func (s *Service) SetRcmmndHost(g int, hosts []string)
- func (s *Service) SetRcmmndNum(num int)
- func (s *Service) SetRcmmndOn(on bool)
- func (s *Service) Widget(c context.Context, plat int8) (res []*show.Item)
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 (*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 (*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 ¶
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) 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 ¶
GetRcmmndGroup get rcmmnd group data.
func (*Service) GetRcmmndHost ¶
GetRcmmndHost get rcmmnd host data.
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 ¶
PopularCardList cards
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) SetRcmmndGroup ¶
SetRcmmndGroup set rcmmnd group data.
func (*Service) SetRcmmndHost ¶
SetRcmmndHost set rcmmnd host data.
func (*Service) SetRcmmndNum ¶
SetRcmmndNum percentage 0~100