//
pkg.gl
Category
github.com/fishus/go-advanced-metrics
internal
metrics
package
0.0.0-20240521175212-4dee7b6a1199
Repository:
https://github.com/fishus/go-advanced-metrics.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
8
Files
152 SLOC
#
Functions
NewCounter
NewCounter returns a pointer to the Counter structure.
NewCounterMetric
NewCounterMetric returns a metric data structure of type counter.
NewGauge
NewGauge returns a pointer to the Gauge structure.
NewGaugeMetric
NewGaugeMetric returns a metric data structure of type gauge.
#
Constants
TypeCounter
Available metric types.
TypeGauge
Available metric types.
#
Structs
Counter
Counter implements the metric type Counter.
Gauge
Gauge implements the metric type Gauge.
Metrics
Metrics structure is used to process incoming data and return results in handlers.