Versions in this module Expand all Collapse all v4 v4.0.0 Nov 6, 2020 Changes in this version + var Dial = NewClient + var New = NewClient + var NewNoop = NewNoopClient + func CheckName(stat string) error + func DefaultSampler(rate float32) bool + type BufferedSender struct + func (s *BufferedSender) Close() error + func (s *BufferedSender) Send(data []byte) (int, error) + func (s *BufferedSender) Start() + type Client struct + func (s *Client) Close() error + func (s *Client) Dec(stat string, value int64, rate float32) error + func (s *Client) Gauge(stat string, value int64, rate float32) error + func (s *Client) GaugeDelta(stat string, value int64, rate float32) error + func (s *Client) Inc(stat string, value int64, rate float32) error + func (s *Client) NewSubStatter(prefix string) SubStatter + func (s *Client) Raw(stat string, value string, rate float32) error + func (s *Client) Set(stat string, value string, rate float32) error + func (s *Client) SetInt(stat string, value int64, rate float32) error + func (s *Client) SetPrefix(prefix string) + func (s *Client) SetSamplerFunc(sampler SamplerFunc) + func (s *Client) Timing(stat string, delta int64, rate float32) error + func (s *Client) TimingDuration(stat string, delta time.Duration, rate float32) error + type ClientConfig struct + Address string + FlushBytes int + FlushInterval time.Duration + Prefix string + ResInterval time.Duration + UseBuffered bool + type NoopClient struct + func (s *NoopClient) Close() error + func (s *NoopClient) Dec(stat string, value int64, rate float32) error + func (s *NoopClient) Gauge(stat string, value int64, rate float32) error + func (s *NoopClient) GaugeDelta(stat string, value int64, rate float32) error + func (s *NoopClient) Inc(stat string, value int64, rate float32) error + func (s *NoopClient) NewSubStatter(prefix string) SubStatter + func (s *NoopClient) Raw(stat string, value string, rate float32) error + func (s *NoopClient) Set(stat string, value string, rate float32) error + func (s *NoopClient) SetInt(stat string, value int64, rate float32) error + func (s *NoopClient) SetPrefix(prefix string) + func (s *NoopClient) SetSamplerFunc(sampler SamplerFunc) + func (s *NoopClient) Timing(stat string, delta int64, rate float32) error + func (s *NoopClient) TimingDuration(stat string, delta time.Duration, rate float32) error + type ResolvingSimpleSender struct + func (s *ResolvingSimpleSender) Close() error + func (s *ResolvingSimpleSender) Reconnect() + func (s *ResolvingSimpleSender) Send(data []byte) (int, error) + func (s *ResolvingSimpleSender) Start() + type SamplerFunc func(float32) bool + type Sender interface + Close func() error + Send func(data []byte) (int, error) + func NewBufferedSender(addr string, flushInterval time.Duration, flushBytes int) (Sender, error) + func NewBufferedSenderWithSender(sender Sender, flushInterval time.Duration, flushBytes int) (Sender, error) + func NewResolvingSimpleSender(addr string, interval time.Duration) (Sender, error) + func NewSimpleSender(addr string) (Sender, error) + type SimpleSender struct + func (s *SimpleSender) Close() error + func (s *SimpleSender) Send(data []byte) (int, error) + type StatSender interface + Dec func(string, int64, float32) error + Gauge func(string, int64, float32) error + GaugeDelta func(string, int64, float32) error + Inc func(string, int64, float32) error + Raw func(string, string, float32) error + Set func(string, string, float32) error + SetInt func(string, int64, float32) error + Timing func(string, int64, float32) error + TimingDuration func(string, time.Duration, float32) error + type Statter interface + Close func() error + NewSubStatter func(string) SubStatter + SetPrefix func(string) + func NewBufferedClient(addr, prefix string, flushInterval time.Duration, flushBytes int) (Statter, error) + func NewClient(addr, prefix string) (Statter, error) + func NewClientWithConfig(config *ClientConfig) (Statter, error) + func NewClientWithSender(sender Sender, prefix string) (Statter, error) + func NewNoopClient(a ...interface{}) (Statter, error) + type SubStatter interface + NewSubStatter func(string) SubStatter + SetSamplerFunc func(SamplerFunc) + type ValidatorFunc func(string) error Other modules containing this package github.com/cactus/go-statsd-client github.com/cactus/go-statsd-client/v5