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: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRPCEmpty = errors.New("rpc reply empty")
)

ERROR

Functions

This section is empty.

Types

type Service

type Service struct {
	ManagerDBSub *databus.Databus
	// contains filtered or unexported fields
}

Service is service.

func New

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

New is videoup-report-job service implementation.

func (*Service) Close

func (s *Service) Close()

Close consumer close.

func (*Service) MoveType

func (s *Service) MoveType(c context.Context, stime, etime time.Time) (reports []*archive.Report, err error)

MoveType get archive move type stats by typeid

func (*Service) Ping

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

Ping check server ok.

func (*Service) RoundFlow

func (s *Service) RoundFlow(c context.Context, stime, etime time.Time) (reports []*archive.Report, err error)

RoundFlow get archive round flow take time records

func (*Service) TaskTooksByHalfHour

func (s *Service) TaskTooksByHalfHour(c context.Context, stime, etime time.Time) (tooks []*archive.TaskTook, err error)

TaskTooksByHalfHour get task books by ctime

func (*Service) VideoAudit

func (s *Service) VideoAudit(c context.Context, stime, etime time.Time) (reports []*archive.Report, err error)

VideoAudit get video audit by typeid

func (*Service) VideoReports

func (s *Service) VideoReports(c context.Context, t int8, stime, etime time.Time) (reports []*archive.Report, err error)

VideoReports get video report record from DB

Jump to

Keyboard shortcuts

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