Documentation ¶
Overview ¶
Package tvks provides a simple-to-use immutable time-series blob database
Index ¶
Constants ¶
View Source
const ( TvksDuplicateKey = iota TvksItemExists TvksItemNotFound TvksInternalError TvksOk )
Result codes that are returned in an Error as-well-as QueryData
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶
type Db struct {
// contains filtered or unexported fields
}
Actual database object that holds records
func Open ¶
Open a database and give a list of groups that are expected to exist there. If the group does not exist yet, they will be made
func (*Db) ExecuteQuery ¶
func (tdb *Db) ExecuteQuery(query *Query) (*QueryResult, *Error)
Submit a retrieval query to the database. Queries do no modify the data
type KeyValue ¶
type KeyValue struct { Key time.Time // Time key Value []byte // Nebulous data Meta []byte // Nebulous meta data }
Thg base key/ value structure that is used to represent records
type Query ¶
type Query struct { RefId uint64 // Reference ID that query builder can use to match query with result Groups *[]string // List of groups to run the query against Range *QueryRange // Inclusive time range for query }
Query into the Db
type QueryRange ¶
Specify a time range for a query
type QueryResult ¶
type TvksRead ¶
type TvksRead interface {
ExecuteQuery(query *Query) (*QueryResult, *Error)
}
type TvksReadWrite ¶
Click to show internal directories.
Click to hide internal directories.