Documentation ¶
Overview ¶
Package statsdclient holds statsdclient related files
Index ¶
- type StatsdClient
- func (s *StatsdClient) Count(name string, value int64, tags []string, _ float64) error
- func (s *StatsdClient) Flush() error
- func (s *StatsdClient) Gauge(name string, value float64, tags []string, _ float64) error
- func (s *StatsdClient) Get(key string) int64
- func (s *StatsdClient) GetByPrefix(prefix string) map[string]int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatsdClient ¶
type StatsdClient struct { statsd.NoOpClient // contains filtered or unexported fields }
StatsdClient is a statsd client for used for tests
func NewStatsdClient ¶
func NewStatsdClient() *StatsdClient
NewStatsdClient returns a new StatsdClient
func (*StatsdClient) Flush ¶
func (s *StatsdClient) Flush() error
Flush does nothing and returns nil
func (*StatsdClient) GetByPrefix ¶
func (s *StatsdClient) GetByPrefix(prefix string) map[string]int64
GetByPrefix return the count
Click to show internal directories.
Click to hide internal directories.