kit: github.com/go-kit/kit/metrics/internal/convert Index | Files

package convert

import "github.com/go-kit/kit/metrics/internal/convert"

Package convert provides a way to use Counters, Histograms, or Gauges as one of the other types

Index

Package Files

convert.go

func NewCounterAsGauge Uses

func NewCounterAsGauge(c metrics.Counter) metrics.Gauge

NewCounterAsGauge returns a Gauge that actually writes the value on an underlying Counter

func NewCounterAsHistogram Uses

func NewCounterAsHistogram(c metrics.Counter) metrics.Histogram

NewCounterAsHistogram returns a Histogram that actually writes the value on an underlying Counter

func NewGaugeAsCounter Uses

func NewGaugeAsCounter(g metrics.Gauge) metrics.Counter

NewGaugeAsCounter returns a Counter that actually writes the value on an underlying Gauge

func NewGaugeAsHistogram Uses

func NewGaugeAsHistogram(g metrics.Gauge) metrics.Histogram

NewGaugeAsHistogram returns a Histogram that actually writes the value on an underlying Gauge

func NewHistogramAsCounter Uses

func NewHistogramAsCounter(h metrics.Histogram) metrics.Counter

NewHistogramAsCounter returns a Counter that actually writes the value on an underlying Histogram

func NewHistogramAsGauge Uses

func NewHistogramAsGauge(h metrics.Histogram) metrics.Gauge

NewHistogramAsGauge returns a Gauge that actually writes the value on an underlying Histogram

Package convert imports 1 packages (graph) and is imported by 4 packages. Updated 2018-03-06. Refresh now. Tools for package owners.