package
3.1.1+incompatible
Repository: https://github.com/jkrez/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.
NewClient returns a pointer to a new Client, and an error.
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).
NewSimpleSender returns a new SimpleSender for sending to the supplied addresss.
# Structs
BufferedSender provides a buffered statsd udp, sending multiple metrics, where possible.
A Client is a statsd client.
A NoopClient is a client that does nothing.
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.