Documentation ¶
Index ¶
- type BoxRow
- type SpanRow
- type TBDB
- func (d TBDB) AddBox(name string, minTime, maxTime int64) error
- func (d TBDB) AddSpan(start, end int64, box string) error
- func (d TBDB) CreateDB() error
- func (d TBDB) DeleteBox(name string) error
- func (d TBDB) DeleteBoxAndSpans(name string) error
- func (d TBDB) DeleteSpan(start, end int64, box string) error
- func (d TBDB) DeleteSpanByID(id int64) error
- func (d TBDB) DoesBoxExist(name string) (bool, error)
- func (d TBDB) DoesSpanOverlap(start, end int64) (bool, error)
- func (d TBDB) GetAllBoxes() ([]BoxRow, error)
- func (d TBDB) GetBox(name string) (BoxRow, error)
- func (d TBDB) GetSpansForBox(boxName string) ([]SpanRow, error)
- func (d TBDB) GetSpansForTimeRange(start, end int64) ([]SpanRow, error)
- func (d TBDB) Init()
- func (d TBDB) UpdateBox(name string, minTime, maxTime int64) error
- func (d TBDB) UpdateSpan(id, start, end int64, box string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TBDB ¶
type TBDB struct {
// contains filtered or unexported fields
}
TBDB is the base struct for the database
func NewDBWithName ¶
func (TBDB) DeleteBoxAndSpans ¶
func (TBDB) DeleteSpanByID ¶
func (TBDB) GetAllBoxes ¶
func (TBDB) GetSpansForTimeRange ¶
Click to show internal directories.
Click to hide internal directories.