convert

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCounterAsGauge

func NewCounterAsGauge(c metrics.Counter) metrics.Gauge

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

func NewCounterAsHistogram

func NewCounterAsHistogram(c metrics.Counter) metrics.Histogram

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

func NewGaugeAsCounter

func NewGaugeAsCounter(g metrics.Gauge) metrics.Counter

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

func NewGaugeAsHistogram

func NewGaugeAsHistogram(g metrics.Gauge) metrics.Histogram

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

func NewHistogramAsCounter

func NewHistogramAsCounter(h metrics.Histogram) metrics.Counter

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

func NewHistogramAsGauge

func NewHistogramAsGauge(h metrics.Histogram) metrics.Gauge

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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