forked from quipo/statsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnoopclient.go
25 lines (22 loc) · 1.54 KB
/
noopclient.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package statsd
import (
"time"
)
//impliment a "noop" statsd in case there is no statsd
type StatsdNoop struct{}
func (s StatsdNoop) String() string { return "NoopClient" }
func (s StatsdNoop) CreateSocket() error { return nil }
func (s StatsdNoop) Close() error { return nil }
func (s StatsdNoop) Incr(stat string, count int64) error { return nil }
func (s StatsdNoop) Decr(stat string, count int64) error { return nil }
func (s StatsdNoop) Timing(stat string, count int64) error { return nil }
func (s StatsdNoop) PrecisionTiming(stat string, delta time.Duration) error { return nil }
func (s StatsdNoop) Gauge(stat string, value int64) error { return nil }
func (s StatsdNoop) GaugeAbsolute(stat string, value int64) error { return nil }
func (s StatsdNoop) GaugeAvg(stat string, value int64) error { return nil }
func (s StatsdNoop) GaugeDelta(stat string, value int64) error { return nil }
func (s StatsdNoop) Absolute(stat string, value int64) error { return nil }
func (s StatsdNoop) Total(stat string, value int64) error { return nil }
func (s StatsdNoop) FGauge(stat string, value float64) error { return nil }
func (s StatsdNoop) FGaugeDelta(stat string, value float64) error { return nil }
func (s StatsdNoop) FAbsolute(stat string, value float64) error { return nil }