-
Notifications
You must be signed in to change notification settings - Fork 51
/
noopclient.go
87 lines (68 loc) · 1.68 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package statsd
//@author https://github.com/wyndhblb/statsd
import (
"time"
"github.com/quipo/statsd/event"
)
// NoopClient implements a "no-op" statsd in case there is no statsd server
type NoopClient struct{}
// CreateSocket does nothing
func (s NoopClient) CreateSocket() error {
return nil
}
// CreateTCPSocket does nothing
func (s NoopClient) CreateTCPSocket() error {
return nil
}
// Close does nothing
func (s NoopClient) Close() error {
return nil
}
// Incr does nothing
func (s NoopClient) Incr(stat string, count int64) error {
return nil
}
// Decr does nothing
func (s NoopClient) Decr(stat string, count int64) error {
return nil
}
// Timing does nothing
func (s NoopClient) Timing(stat string, count int64) error {
return nil
}
// PrecisionTiming does nothing
func (s NoopClient) PrecisionTiming(stat string, delta time.Duration) error {
return nil
}
// Gauge does nothing
func (s NoopClient) Gauge(stat string, value int64) error {
return nil
}
// GaugeDelta does nothing
func (s NoopClient) GaugeDelta(stat string, value int64) error {
return nil
}
// Absolute does nothing
func (s NoopClient) Absolute(stat string, value int64) error {
return nil
}
// Total does nothing
func (s NoopClient) Total(stat string, value int64) error {
return nil
}
// FGauge does nothing
func (s NoopClient) FGauge(stat string, value float64) error {
return nil
}
// FGaugeDelta does nothing
func (s NoopClient) FGaugeDelta(stat string, value float64) error {
return nil
}
// FAbsolute does nothing
func (s NoopClient) FAbsolute(stat string, value float64) error {
return nil
}
// SendEvents does nothing
func (s NoopClient) SendEvents(events map[string]event.Event) error {
return nil
}