Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer is an object for storing metrics in a circular buffer.
func NewBuffer ¶
NewBuffer returns a Buffer
size is the maximum number of metrics that Buffer will cache. If Add is called when the buffer is full, then the oldest metric(s) will be dropped.
Click to show internal directories.
Click to hide internal directories.