Versions in this module Expand all Collapse all v1 v1.3.0 Jan 10, 2022 Changes in this version type Option + func TrimTrailingNewline(enabled bool) Option + type UDPConn struct + func NewUDPConn(network, address string, rate time.Duration) (*UDPConn, error) + func (x *UDPConn) Close() (err error) + func (x *UDPConn) Write(b []byte) (int, error) v1.2.0 Dec 31, 2021 Changes in this version type Client + func (c *Client) GaugeRelative(bucket string, value interface{}) v1.1.0 Dec 31, 2021 Changes in this version type Option + func UDPCheck(enabled bool) Option v1.0.0 Nov 17, 2020 Changes in this version + type Client struct + func New(opts ...Option) (*Client, error) + func (c *Client) Clone(opts ...Option) *Client + func (c *Client) Close() + func (c *Client) Count(bucket string, n interface{}) + func (c *Client) Flush() + func (c *Client) Gauge(bucket string, value interface{}) + func (c *Client) Histogram(bucket string, value interface{}) + func (c *Client) Increment(bucket string) + func (c *Client) NewTiming() Timing + func (c *Client) Timing(bucket string, value interface{}) + func (c *Client) Unique(bucket string, value string) + type Option func(*config) + func Address(addr string) Option + func ErrorHandler(h func(error)) Option + func FlushPeriod(p time.Duration) Option + func InlineFlush(enabled bool) Option + func MaxPacketSize(n int) Option + func Mute(b bool) Option + func Network(network string) Option + func Prefix(p string) Option + func SampleRate(rate float32) Option + func Tags(tags ...string) Option + func TagsFormat(tf TagFormat) Option + func WriteCloser(writer io.WriteCloser) Option + type SafeConn struct + func NewSafeConn(network, address string, connTimeout, readTimeout time.Duration) (*SafeConn, error) + func NewSafeConnWithDefaultTimeouts(network string, address string) (*SafeConn, error) + func (s *SafeConn) Close() error + func (s *SafeConn) Write(p []byte) (n int, err error) + type TagFormat uint8 + const Datadog + const InfluxDB + type Timing struct + func (t Timing) Duration() time.Duration + func (t Timing) Send(bucket string) Incompatible versions in this module v2.0.0+incompatible Mar 20, 2016