dbs

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeUnitNone   = "none"
	TimeUnitMinute = "minute"
	TimeUnitHour   = "hour"
	TimeUnitDay    = "day"
	TimeUnitWeek   = "week"
	TimeUnitMonth  = "month"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(path string) (*DB, error)

func (*DB) Close

func (this *DB) Close() error

func (*DB) Delete

func (this *DB) Delete(key []byte) error

func (*DB) Query

func (this *DB) Query(timePrefixes []string, script string) (result interface{}, err error)

query values

func (*DB) Write

func (this *DB) Write(value map[string]string) error

write value value,$time,$id -> json($value)

type Record

type Record struct {
	Time  time.Time
	Key   []byte
	Value map[string]string
}

type TimeUnit

type TimeUnit = string

Jump to

Keyboard shortcuts

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