Documentation ¶ Index ¶ type Stats func NewStats(client statsd.Statter, env, server, service string, sampleRate string) Stats func NullStats() *Stats func (s *Stats) Agent(stat string) string func (s Stats) Metric(metric string) string func (s *Stats) SetAgent(agentId uint) func (s *Stats) SetComponent(component string) func (s *Stats) System(stat string) string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Stats ¶ type Stats struct { statsd.Statter SampleRate float32 // contains filtered or unexported fields } func NewStats ¶ func NewStats(client statsd.Statter, env, server, service string, sampleRate string) Stats func NullStats ¶ func NullStats() *Stats func (*Stats) Agent ¶ func (s *Stats) Agent(stat string) string func (Stats) Metric ¶ func (s Stats) Metric(metric string) string func (*Stats) SetAgent ¶ func (s *Stats) SetAgent(agentId uint) func (*Stats) SetComponent ¶ func (s *Stats) SetComponent(component string) func (*Stats) System ¶ func (s *Stats) System(stat string) string Source Files ¶ View all Source files stats.go Click to show internal directories. Click to hide internal directories.