storedriver

package
v0.0.0-...-17c607b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TS_COLUMN string = "_sample_timestamp"

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickHouseColumn

type ClickHouseColumn struct {
	Name string
	Type ClickHouseColumnType
}

type ClickHouseColumnType

type ClickHouseColumnType string
const (
	Measure  ClickHouseColumnType = "Float64"
	Label    ClickHouseColumnType = "String"
	LabelSet ClickHouseColumnType = "Array(String)"
)

type ClickHouseDriver

type ClickHouseDriver struct {
	// contains filtered or unexported fields
}

func NewClickHouseStoreDriver

func NewClickHouseStoreDriver(cfg *config.ClickHouseConfig) (*ClickHouseDriver, error)

func (ClickHouseDriver) Close

func (chd ClickHouseDriver) Close() error

func (ClickHouseDriver) InsertSamples

func (chd ClickHouseDriver) InsertSamples(ctx context.Context, samples []sample.Sample) error

Takes a slice of samples and inserts them into the store

type StoreDriver

type StoreDriver interface {
	// Takes a slice of samples and inserts them into the store
	InsertSamples(ctx context.Context, samples []sample.Sample) error

	// Close down any open connections/handles
	Close() error
}

Jump to

Keyboard shortcuts

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