metrics

package
v0.0.0-...-514d410 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric interface {
	Add(interface{}) error
	Get() interface{}
}
var (
	TotalPickedMetric Metric = &intMetric{}
)

type MetricEntry

type MetricEntry struct {
	Label  MetricsLabel
	Metric Metric
}

type MetricsLabel

type MetricsLabel string
const (
	TotalPickedLabel MetricsLabel = "Gorift_TotalPicked"
)

type MetricsRepository

type MetricsRepository map[MetricsLabel]Metric

func NewMetricsRepository

func NewMetricsRepository(entries ...MetricEntry) MetricsRepository

Jump to

Keyboard shortcuts

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