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 testing.TB) *FakeStatsd
func (*FakeStatsd) Addr ¶
func (s *FakeStatsd) Addr() string
func (*FakeStatsd) Metrics ¶
func (s *FakeStatsd) Metrics() []Metric
func (*FakeStatsd) Reset ¶
func (s *FakeStatsd) Reset()
Click to show internal directories.
Click to hide internal directories.