Versions in this module Expand all Collapse all v0 v0.1.1 Oct 16, 2020 v0.1.0 Aug 27, 2020 Changes in this version + func Init(m interface{}, factory Factory) error + func InitD(m interface{}) error + func MustInit(metrics interface{}, factory Factory) + func MustInitD(metrics interface{}) + func SetDefaultFactory(factory Factory) + type Counter interface + Add func(delta float64) + Inc func() + With func(labelValues ...string) Counter + var NullCounter Counter = &nullCounter{} + type Factory interface + Counter func(metric Options) Counter + Gauge func(metric Options) Gauge + Histogram func(metric HistogramOptions) Histogram + var DefaultFactory Factory = NullFactory + var NullFactory Factory = &nullFactory{} + type Gauge interface + Add func(delta float64) + Set func(value float64) + With func(labelValues ...string) Gauge + var NullGauge Gauge = &nullGauge{} + type Histogram interface + Observe func(value float64) + With func(labelValues ...string) Histogram + var NullSummary Histogram = &nullSummary{} + type HistogramOptions struct + Help string + Labels []string + Name string + Tags map[string]string + type Options struct + Help string + Labels []string + Name string + Tags map[string]string