metricsdb

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InputQueue = make(chan []*metricsdb.HostMetricDataPoint, 128)
View Source
var RequestQueue = make(chan *metricsdb.HostMetricsRequest, 128)

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Query(r *metricsdb.HostMetricsRequest) (*metricsdb.HostMetricsResponse, error)
	// QueryAll(r *metricsdb.HostMetricsRequest) (*metricsdb.HostMetricsResponse, error)
	WriteBatch(dps []*metricsdb.HostMetricDataPoint) error
	Scan(keyPrefix []byte) ([]*metricsdb.HostMetricDataPoint, error)
	Last(keyPrefix []byte) (*metricsdb.HostMetricDataPoint, error)
	Close()
}

func Open

func Open(db *badger.DB) Interface

Jump to

Keyboard shortcuts

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