Documentation
¶
Index ¶
- type Service
- func (s *Service) Carousel(c context.Context) (items []*model.Item, err error)
- func (s *Service) Matsuri(c context.Context, now time.Time) (view *model.View)
- func (s *Service) PageList(c context.Context, aid int64) (rs []*arcmdl.Page, err error)
- func (s *Service) Ping(c context.Context) (err error)
- func (s *Service) PlayURLToken(c context.Context, mid, aid, cid int64) (res *model.PlayURLToken, err error)
- func (s *Service) Player(c context.Context, mid, aid, cid int64, cdnIP, refer string, now time.Time) (res []byte, err error)
- func (s *Service) Playurl(c context.Context, mid int64, arg *model.PlayurlArg) (data *model.PlayurlRes, err error)
- func (s *Service) Policy(c context.Context, id, mid int64) (item *model.Pitem, err error)
- func (s *Service) VideoShot(c context.Context, aid, cid int64, index bool) (res *model.Videoshot, err error)
- func (s *Service) View(c context.Context, aid int64) (view *model.View, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { // broadcast BrBegin time.Time BrEnd time.Time // contains filtered or unexported fields }
Service is a service.
func (*Service) PlayURLToken ¶
func (s *Service) PlayURLToken(c context.Context, mid, aid, cid int64) (res *model.PlayURLToken, err error)
PlayURLToken get playurl token
func (*Service) Player ¶
func (s *Service) Player(c context.Context, mid, aid, cid int64, cdnIP, refer string, now time.Time) (res []byte, err error)
Player return player info.
func (*Service) Playurl ¶
func (s *Service) Playurl(c context.Context, mid int64, arg *model.PlayurlArg) (data *model.PlayurlRes, err error)
Playurl get playurl data.
Click to show internal directories.
Click to hide internal directories.