Documentation
¶
Index ¶
- type Client
- func (c *Client) Annotate(name string, value string, args ...interface{}) error
- func (c *Client) Close() error
- func (c *Client) Decr(name string) error
- func (c *Client) DecrBy(name string, value int) error
- func (c *Client) Decrement(name string, count int, rate float64) error
- func (c *Client) Duration(name string, duration time.Duration) error
- func (c *Client) Flush() error
- func (c *Client) Gauge(name string, value int) error
- func (c *Client) Histogram(name string, value int) error
- func (c *Client) Incr(name string) error
- func (c *Client) IncrBy(name string, n int) error
- func (c *Client) Increment(name string, count int, rate float64) error
- func (c *Client) Prefix(s string)
- func (c *Client) Unique(name string, value int, rate float64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is statsd client representing a onnection to a statsd server.
func Dial ¶
Dial connects to the given address on the given network using net.Dial and then returns a new Client for the connection.
func DialSize ¶
DialSize acts like Dial but takes a packet size. By default, the packet size is 512, see https://github.com/etsy/statsd/blob/master/docs/metric_types.md#multi-metric-packets for guidelines.
func DialTimeout ¶
DialTimeout acts like Dial but takes a timeout. The timeout includes name resolution, if required.
func (*Client) Histogram ¶
Histogram is an alias of .Duration() until the statsd protocol figures its shit out.
Click to show internal directories.
Click to hide internal directories.