channel

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: 54 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 channel

func New

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

New channel

func (*Service) ArchivesWithPlayer

func (s *Service) ArchivesWithPlayer(c context.Context, aids []int64, qn int, platform string, fnver, fnval, build int) (res map[int64]*archive.ArchiveWithPlayer, err error)

ArchivesWithPlayer archives witch player

func (*Service) Category

func (s *Service) Category(c context.Context, plat int8) (res []*channel.Category, err error)

Category 频道分类

func (*Service) Discover

func (s *Service) Discover(c context.Context, id, mid int64, plat int8) (res []*channel.Channel, err error)

Discover 发现频道页(推荐走recommend接口,有分类的揍list接口)

func (*Service) Index

func (s *Service) Index(c context.Context, mid, channelID, idx int64, plat int8, mobiApp, device, buvid, channelName string, build, loginEvent, displayID, qn, fnver, fnval int, pull bool, now time.Time) (res *feed.Show, err error)

Index channel index

func (*Service) Index2

func (s *Service) Index2(c context.Context, mid, channelID, idx int64, plat int8, mobiApp, device, buvid, channelName, ip string,
	build, loginEvent, displayID, qn, fnver, fnval int, pull bool, now time.Time) (res *feed.Show2, err error)

Index channel index

func (*Service) List

func (s *Service) List(c context.Context, mid int64, plat int8, build, limit int, ver, mobiApp, device, lang string) (res *channel.List, err error)

List 频道tab页

func (*Service) Mysub

func (s *Service) Mysub(c context.Context, mid int64, limit int) (res *channel.Mysub, err error)

Mysub 我订阅的tag(新) standard放前面用户自定义custom放后面

func (*Service) OperationInfoc

func (s *Service) OperationInfoc(mobiApp, device, operation string, build, from int, channelID, mid int64, now time.Time)

OperationInfoc channel operation infoc

func (*Service) Ping

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

Ping is check server ping.

func (*Service) Recommend

func (s *Service) Recommend(c context.Context, mid int64, plat int8) (res []*channel.Channel, err error)

Recommend 推荐

func (*Service) RegionList

func (s *Service) RegionList(c context.Context, plat int8, build int, mobiApp, device, lang string) (regionTop, regionBottom, regions []*channel.Region, err error)

RegionList 分区信息

func (*Service) Square

func (s *Service) Square(c context.Context, mid int64, plat int8, build int, loginEvent int32, mobiApp, device, lang, buvid string) (res *channel.Square, err error)

Square 频道广场页

func (*Service) Subscribe

func (s *Service) Subscribe(c context.Context, mid int64, limit int) (res []*channel.Channel, err error)

Subscribe 我订阅的tag(老) standard放前面用户自定义custom放后面

func (*Service) SubscribeAdd

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

SubscribeAdd subscribe add

func (*Service) SubscribeCancel

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

SubscribeCancel subscribe channel

func (*Service) SubscribeUpdate

func (s *Service) SubscribeUpdate(c context.Context, mid int64, ids string) (err error)

SubscribeUpdate subscribe update

func (*Service) Tab

func (s *Service) Tab(c context.Context, tid, mid int64, tname string, plat int8) (res *channel.Tab, err error)

Tab channel tab

func (*Service) TabList

func (s *Service) TabList(c context.Context, channelID, mid int64, channelName, mobiApp string, displayID, build, from int, plat int8, now time.Time) (res *feed.Tab, err error)

Jump to

Keyboard shortcuts

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