metricsdb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 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