metrics

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStatsD

type MockStatsD struct {
	mock.Mock
}

MockStatsD is a Mock which implements the StatsD interface

func (*MockStatsD) Gauge added in v0.2.7

func (m *MockStatsD) Gauge(name string, value float64, tags []string, rate float64) error

Gauge calls the mock method to increment a statistic

func (*MockStatsD) Incr

func (m *MockStatsD) Incr(name string, tags []string, rate float64) error

Incr calls the mock method to increment a statistic

type StatsD

type StatsD interface {
	Incr(name string, tags []string, rate float64) error
	Gauge(name string, value float64, tags []string, rate float64) error
}

StatsD defines an interface for logging data with StatsD

Jump to

Keyboard shortcuts

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