Documentation ¶ Index ¶ type Metrics type Noop func (Noop) Count(_ string, _ int64, _ []string) func (Noop) Decr(_ string, _ []string) func (Noop) Gauge(_ string, _ float64, _ []string) func (Noop) Histogram(_ string, _ float64, _ []string) func (Noop) Incr(_ string, _ []string) func (Noop) Timing(_ string, _ time.Duration, _ []string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Metrics ¶ type Metrics interface { Gauge(name string, value float64, tags []string) Histogram(name string, value float64, tags []string) Count(name string, value int64, tags []string) Incr(name string, tags []string) Decr(name string, tags []string) Timing(name string, value time.Duration, tags []string) } type Noop ¶ type Noop struct{} Noop implements the Metrics interface, and does nothing, making it easier to pass around an instance safely. func (Noop) Count ¶ func (Noop) Count(_ string, _ int64, _ []string) Count is noop func (Noop) Decr ¶ func (Noop) Decr(_ string, _ []string) Decr is noop func (Noop) Gauge ¶ func (Noop) Gauge(_ string, _ float64, _ []string) Gauge is noop func (Noop) Histogram ¶ func (Noop) Histogram(_ string, _ float64, _ []string) Histogram is noop func (Noop) Incr ¶ func (Noop) Incr(_ string, _ []string) Incr is noop func (Noop) Timing ¶ func (Noop) Timing(_ string, _ time.Duration, _ []string) Timing is noop Source Files ¶ View all Source files metrics.go Click to show internal directories. Click to hide internal directories.