fakestatsd

package
v1.0.2775-8924e10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package fakestatsd provides a recording statsd server that will listen on a local UDP port.

If sending metrics is a particularly important part of a component's functionality then this package will help you test those metrics are sent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeStatsd

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

func New

func New(t types.TestingTB) *FakeStatsd

func (*FakeStatsd) Addr

func (s *FakeStatsd) Addr() string

func (*FakeStatsd) Metrics

func (s *FakeStatsd) Metrics() []Metric

func (*FakeStatsd) Reset

func (s *FakeStatsd) Reset()

type Metric

type Metric struct {
	Name  string
	Value string
	Tags  []string
}

Jump to

Keyboard shortcuts

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