Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReceiver ¶
NewReceiver builds new StatsD receiver
func SanitizeParamValue ¶
SanitizeParamValue replaces special characters from param value
Types ¶
type Config ¶
type Config struct { Address string `json:"address" yaml:"address"` Microseconds bool `json:"microseconds" yaml:"microseconds"` Dogstats bool `json:"dogstats" yaml:"dogstats"` AllowedParams []string `json:"params" yaml:"params"` Prefix string `json:"prefix" yaml:"prefix"` FlushEvery int `json:"flushEvery" yaml:"flushEvery"` PacketLines int `json:"packetLines" yaml:"packetLines"` }
Config holds configuration for StatsD client
type PacketBuilder ¶
PacketBuilder is special type of buffer, used to build StatsD-compatible packets.
func NewPacketBuilder ¶
func NewPacketBuilder(prefix string, precision int64) PacketBuilder
NewPacketBuilder builds packet builder without params support
func NewPacketWithParamsBuilder ¶
func NewPacketWithParamsBuilder(prefix string, precision int64, allowed map[string]bool) PacketBuilder
NewPacketWithParamsBuilder builds packet builder with params support
Click to show internal directories.
Click to hide internal directories.