internal

package
v0.0.0-...-7fde234 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive struct {
	Interval  int64
	ChunkSize int64
	Dir       string
	Retention int64
	StartTime int64
	EndTime   int64
	// contains filtered or unexported fields
}

func NewArchive

func NewArchive(dirPath string, interval, retention, chunkSize int64) *Archive

func OpenArchive

func OpenArchive(dirPath string) (*Archive, error)

func (*Archive) Append

func (a *Archive) Append(val map[string]interface{}, timestamp int64)

func (*Archive) GetData

func (a *Archive) GetData(startTime, endTime int64) (map[string][]interface{}, []int64)

func (*Archive) Latest

func (a *Archive) Latest() (map[string]interface{}, int64)

func (*Archive) Write

func (a *Archive) Write() error

Jump to

Keyboard shortcuts

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