Merge pull request #22 from Gouthamve/master

Add Sample Back
This commit is contained in:
Fabian Reinartz 2017-03-27 09:55:55 +02:00 committed by GitHub
commit 6a87e1a926
1 changed files with 5 additions and 0 deletions

View File

@ -34,6 +34,11 @@ var (
ErrOutOfBounds = errors.New("out of bounds")
)
type sample struct {
t int64
v float64
}
// headBlock handles reads and writes of time series data within a time window.
type headBlock struct {
mtx sync.RWMutex