Documentation
¶
Index ¶
- type Client
- type ClosedClient
- func (c ClosedClient) Count(name string, value int64, tags []string, rate float64) error
- func (c ClosedClient) Decr(name string, tags []string, rate float64) error
- func (c ClosedClient) Gauge(name string, value float64, tags []string, rate float64) error
- func (c ClosedClient) Histogram(name string, value float64, tags []string, rate float64) error
- func (c ClosedClient) Incr(name string, tags []string, rate float64) error
- func (c ClosedClient) Set(name string, value string, tags []string, rate float64) error
- func (c ClosedClient) TimeInMilliseconds(name string, value float64, tags []string, rate float64) error
- func (c ClosedClient) Timing(name string, value time.Duration, tags []string, rate float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Gauge(name string, value float64, tags []string, rate float64) error
Count(name string, value int64, tags []string, rate float64) error
Histogram(name string, value float64, tags []string, rate float64) error
Decr(name string, tags []string, rate float64) error
Incr(name string, tags []string, rate float64) error
Set(name string, value string, tags []string, rate float64) error
Timing(name string, value time.Duration, tags []string, rate float64) error
TimeInMilliseconds(name string, value float64, tags []string, rate float64) error
}
Client interface for metrics client currently using: https://github.com/DataDog/datadog-go/statsd
type ClosedClient ¶
type ClosedClient struct {
}
ClosedClient an empty client for using a mocked simple client as a closed
func (ClosedClient) Decr ¶
func (c ClosedClient) Decr(name string, tags []string, rate float64) error
Decr does nothing
func (ClosedClient) Incr ¶
func (c ClosedClient) Incr(name string, tags []string, rate float64) error
Incr does nothing
func (ClosedClient) TimeInMilliseconds ¶
func (c ClosedClient) TimeInMilliseconds(name string, value float64, tags []string, rate float64) error
TimeInMilliseconds does nothing
Click to show internal directories.
Click to hide internal directories.