123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- 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
- }
|