Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewArrayCollector ¶
func NewArrayCollector() *arrayCollector
func NewTachymeterCollector ¶
func NewTachymeterCollector(window int) *tachymeterCollector
Types ¶
type Aggregation ¶
type Collector ¶
type Collector interface { All() []float64 // All gets all the response times collected. Len() int // Len gets the number of response times collected. Add(t time.Duration) // Add sends a new response time to the collector. Aggregate() *Aggregation // Aggregate calculates aggregate metrics over a defined time period. Reset() // Reset resets the state of the collector for reuse. }
Click to show internal directories.
Click to hide internal directories.