Categorygithub.com/alxarch/go-meter/v2
modulepackage
2.0.0-beta9
Repository: https://github.com/alxarch/go-meter.git
Documentation: pkg.go.dev

# README

go-meter

Metering for Go

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewCounters creates a new counter index of size capacity.
NewEvent creates a new Event using the specified labels.
No description provided by the author
ParseEval parses a query expression.
QueryEvaler turns a Querier to an Evaler.
No description provided by the author
ResultTypeFromString converts a string to ResultType.
ScanQuerier turns a Scanners to a Querier.
TeeStore stores to multiple stores.
ZipFields creates a field collection zipping labels and values.

# Constants

Result types.
Result types.
Result types.
Result types.

# Structs

Counter counts events labeled by values.
Counters is an index of counters safe for councurrent use.
DataPoint is a time/value pair.
Eval is a query expression of simple arthmetic between events.
Event stores counters for an event.
EventSummaries is a result summary format.
EventSummary groups values with totals.
Field is a Label/Value pair.
FieldCache is an in memory cache of field ids.
FieldSummary is a query result presented as a summary of field values.
MemoryStore is an in-memory EventStore for debugging.
MergeAvg merges values to their average.
MergeDiff subtracts values.
MergeDiv divides values.
MergeMax keeps max value.
MergeMin keeps min value.
MergeMul multiplies values.
MergeSum adds values.
Query is a query for event results.
Result is a query result.
ScanResult is result of a scan.
Snapshot is a snaphot of event counters.
Table holds generic tabular data.
TimeRange is a range of time with a specific step.
No description provided by the author
UnsafeCounters is an index of counters not safe for concurrent use.

# Interfaces

No description provided by the author
Evaler runs eval queries.
Merger provides a method to merge values.
No description provided by the author
Querier runs queries.
Scanner scans stored data according to a query.
Scanners provides a Scanner for an event.
Storer stores events.

# Type aliases

CounterSlice is a slice of counters.
DataPoints is a collection of DataPoints.
Fields is a collection of Label/Value pairs.
FieldSummaries is a slice of FieldSummary results.
MergeFunc is a closure Merger.
Results is a slice of results.
ResultType is a type of result.
ScannerIndex is an index of scanners that implements Scanners interface.
ScanResults are results from a scan.
No description provided by the author