reporter

package
v0.0.0-...-70692ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReportData

type ReportData struct {
	ExecRate float64 `json:"execRate"`
	QueSize  int     `json:"queSize"`
}

type Reporter

type Reporter struct {
	// contains filtered or unexported fields
}

func New

func New(rclient *redis.Client, que *jobque.JobQueue, reportDuration time.Duration) (*Reporter, error)

func (*Reporter) RecordLoop

func (r *Reporter) RecordLoop(errch chan error)

func (*Reporter) Report

func (r *Reporter) Report() ([]ReportData, error)

Jump to

Keyboard shortcuts

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