testhelper

package
v0.0.0-...-57f4fd1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpyMetric

type SpyMetric struct {
	// contains filtered or unexported fields
}

func (*SpyMetric) Delta

func (s *SpyMetric) Delta() uint64

func (*SpyMetric) Emit

func (s *SpyMetric) Emit(c pulseemitter.LogClient)

func (*SpyMetric) GaugeValue

func (s *SpyMetric) GaugeValue() float64

func (*SpyMetric) Increment

func (s *SpyMetric) Increment(c uint64)

func (*SpyMetric) Set

func (s *SpyMetric) Set(c float64)

type SpyMetricClient

type SpyMetricClient struct {
	// contains filtered or unexported fields
}

func NewMetricClient

func NewMetricClient() *SpyMetricClient

func (*SpyMetricClient) GetMetric

func (s *SpyMetricClient) GetMetric(name string) *SpyMetric

func (*SpyMetricClient) NewCounterMetric

func (s *SpyMetricClient) NewCounterMetric(name string, opts ...pulseemitter.MetricOption) pulseemitter.CounterMetric

func (*SpyMetricClient) NewGaugeMetric

func (s *SpyMetricClient) NewGaugeMetric(name, unit string, opts ...pulseemitter.MetricOption) pulseemitter.GaugeMetric

Jump to

Keyboard shortcuts

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