package
4.0.0
Repository: https://github.com/cactus/go-statsd-client.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CheckName may be used to validate whether a stat name contains invalid characters.
DefaultSampler is the default rate sampler function.
NewBufferedClient returns a new BufferedClient addr is a string of the format "hostname:port", and must be parsable by net.ResolveUDPAddr.
NewBufferedSender returns a new BufferedSender addr is a string of the format "hostname:port", and must be parsable by net.ResolveUDPAddr.
NewBufferedSenderWithSender returns a new BufferedSender, wrapping the provided sender.
NewClient returns a pointer to a new Client, and an error.
NewClientWithConfig returns a new BufferedClient config is a ClientConfig, which holds various configuration values.
NewClientWithSender returns a pointer to a new Client and an error.
NewNoopClient returns a pointer to a new NoopClient, and an error (always nil, just supplied to support api convention).
NewResolvingSimpleSender returns a new ResolvingSimpleSender for sending to the supplied addresss.
NewSimpleSender returns a new SimpleSender for sending to the supplied addresss.

# Variables

Dial is a compatibility alias for NewClient Deprecated: This interface is "legacy", and it is recommented to migrate to using NewClientWithConfig in the future.
New is a compatibility alias for NewClient Deprecated: This interface is "legacy", and it is recommented to migrate to using NewClientWithConfig in the future.
NewNoop is a compatibility alias for NewNoopClient Deprecated: This type is "legacy", and it is recommented to migrate to using a nil *Client in the future.

# Structs

BufferedSender provides a buffered statsd udp, sending multiple metrics, where possible.
A Client is a statsd client.
No description provided by the author
A NoopClient is a client that does nothing.
ResolvingSimpleSender provides a socket send interface that re-resolves and reconnects.
SimpleSender provides a socket send interface.

# Interfaces

The Sender interface wraps a Send and Close.
The StatSender interface wraps all the statsd metric methods.
The Statter interface defines the behavior of a stat client.
The SubStatter interface defines the behavior of a stat child/subclient.

# Type aliases

The SamplerFunc type defines a function that can serve as a Client sampler function.
The ValidatorFunc type defines a function that can serve as a stat name validation function.