buffer

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

Buffer manages access and holds TSBuffer items to buffer TSInput data

func NewBuffer

func NewBuffer(filterStdDevs int, profiler api.TSProfiler) Buffer

NewBuffer initializes and returns a new Buffer

func (*Buffer) Add

func (buffer *Buffer) Add(data models.TSInput)

Add adds the given tsdata item to its metric buffer

func (*Buffer) Reset

func (buffer *Buffer) Reset() []models.TSBuffer

Reset clears the buffer after it returned a copy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL