package
Version:
v0.0.15
Opens a new window with list of versions in this module.
Published: Mar 5, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
-
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)
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)
}
Noop implements the Metrics interface, and does nothing, making it easier to pass around an instance safely.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.