storage

package
v0.0.0-...-a6d84cd Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRows

func AddRows(mrs model.MetricRows) error

AddRows adds mrs to the storage.

func FlushVolatileDataPoints

func FlushVolatileDataPoints() error

FlushVolatileDataPoints runs a loop of flushing data points from MemStore to DiskStore.

func Init

func Init()

Init creates a storage client.

func RunMemWriter

func RunMemWriter(num int)

func StreamVolatileDataPoints

func StreamVolatileDataPoints() error

StreamVolatileDataPoints streams volatile datapoints to reliable stream.

func SubmitMemWriter

func SubmitMemWriter(mrs model.MetricRows) error

Types

type Storage

type Storage struct {
	Memstore *redis.Redis
}
var Store *Storage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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