Documentation ¶
Overview ¶
Package statsd is simple statsd warpper.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { StatsdHost string `json:"statsd_host"` StatsdPort int `json:"statsd_port"` StatsdNamespace string `json:"statsd_namespace"` }
Config for statsd
type Stats ¶
type Stats interface { StatsCounter(key string, value int64) StatsGauge(key string, value int64) Timing(key string, start time.Time) TimingDuration(key string, duration time.Duration) }
Stats interface
type Statsd ¶
type Statsd struct {
// contains filtered or unexported fields
}
Statsd used to monitor and measure performance
func (*Statsd) StatsCounter ¶
StatsCounter increase counter for key
func (*Statsd) StatsGauge ¶
StatsGauge gauge for key
Click to show internal directories.
Click to hide internal directories.