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: 27 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 {
	TaskCache       []*model.Task
	TaskMapCache    map[int64]*model.Task
	GiftRewardCache map[int8][]*model.GiftReward //gift-reward
	// contains filtered or unexported fields
}

Service is service.

func New

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

New is go-common/app/service/videoup service implementation.

func (*Service) Close

func (s *Service) Close()

Close sub.

func (*Service) FlushHonor

func (s *Service) FlushHonor()

FlushHonor .

func (*Service) FlushHot

func (s *Service) FlushHot(bs int)

FlushHot for compute archive hot value by time.

func (*Service) InitCron

func (s *Service) InitCron()

InitCron init cron

func (*Service) Ping

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

Ping service

func (*Service) SendMsg

func (s *Service) SendMsg()

SendMsg .

func (*Service) TaskClose

func (s *Service) TaskClose()

TaskClose close task sub.

func (*Service) TestSendMsg

func (s *Service) TestSendMsg(c context.Context, mids []int64) (err error)

TestSendMsg .

Jump to

Keyboard shortcuts

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