goblin

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: 13 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 {
	ChlSplash map[string]string // channel's splash data
	Hotword   []*model.Hotword  // search hotword data
	VipQns    map[string]int    // playurl qualities for vips
	// contains filtered or unexported fields
}

Service .

func New

func New(c *conf.Config) *Service

New .

func (*Service) Labels

func (s *Service) Labels(c context.Context, catType, category int) (result []*goblin.TypeLabels, err error)

Labels picks label

func (*Service) PickSph

func (s *Service) PickSph(channel string) (sph string, err error)

PickSph picks the splash data from memory map

func (*Service) UgcPlayurl

func (s *Service) UgcPlayurl(c context.Context, p *model.PlayURLReq, mid int64) (result map[string]interface{}, err error)

UgcPlayurl returns the result of ugc play url

func (*Service) VerUpdate

func (s *Service) VerUpdate(c context.Context, ver *model.VerUpdate) (result *model.HTTPData, errCode ecode.Codes, err error)

VerUpdate .

Jump to

Keyboard shortcuts

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