eq_stat

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stat

type Stat interface {
	// Increment for enqueue event
	IncrEnqueue(mouldId, batchId string)

	// Increment for fetch event
	IncrFetch(mouldId, batchId string)

	// Increment for complete event
	IncrComplete(mouldId, batchId string)

	// Statistics of tasks.
	// Returns 0, 0 if the task not found for the mouldId
	StatTask(mouldId string) (completed, total int)

	// Statistics of batch.
	// Returns 0, 0 if the task not found for the mouldId
	StatBatch(mouldId string) (completed, total int)
}

func New

func New() Stat

Jump to

Keyboard shortcuts

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