service

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

	// broadcast
	BrBegin time.Time
	BrEnd   time.Time
	// contains filtered or unexported fields
}

Service is a service.

func New

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

New new and return service.

func (*Service) Carousel

func (s *Service) Carousel(c context.Context) (items []*model.Item, err error)

Carousel return carousel items.

func (*Service) Matsuri

func (s *Service) Matsuri(c context.Context, now time.Time) (view *model.View)

Matsuri get matsuri info

func (*Service) PageList

func (s *Service) PageList(c context.Context, aid int64) (rs []*arcmdl.Page, err error)

PageList many p video pages

func (*Service) Ping

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

Ping check service health

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.

func (*Service) Policy

func (s *Service) Policy(c context.Context, id, mid int64) (item *model.Pitem, err error)

Policy return policy info.

func (*Service) VideoShot

func (s *Service) VideoShot(c context.Context, aid, cid int64, index bool) (res *model.Videoshot, err error)

VideoShot get archive video shot data

func (*Service) View

func (s *Service) View(c context.Context, aid int64) (view *model.View, err error)

View get view info

Jump to

Keyboard shortcuts

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