storage

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package storage handles storage backend

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.1.0

type Config struct {
	Memory    memory.Config          `yaml:"memory" json:"memory"`
	Disk      disk.Config            `yaml:"disk" json:"disk"`
	Cassandra cassandra.Config       `yaml:"cassandra" json:"cassandra"`
	XXX       map[string]interface{} `yaml:",inline"`
}

func NewConfig added in v0.1.0

func NewConfig() Config

func (*Config) Apply added in v0.1.0

func (c *Config) Apply() error

func (*Config) UnmarshalYAML added in v0.1.0

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Config) Validate added in v0.1.0

func (c *Config) Validate() error

type Store

type Store interface {
	StoreType() string
	QuerySeries([]common.Query) ([]common.QueryResult, []common.Series, error)
	WriteIntSeries([]common.IntSeries) error
	WriteDoubleSeries([]common.DoubleSeries) error
	Shutdown()
}

Store is the base interface for all type of storages TODO: each store should maintains some counter for internal metrics

func CreateStore added in v0.1.0

func CreateStore(engine string, config Config) (Store, error)

Directories

Path Synopsis
Package cassandra provides the functionality to use Cssandra as long term and distributed storage
Package cassandra provides the functionality to use Cssandra as long term and distributed storage
Package disk is a generated protocol buffer package.
Package disk is a generated protocol buffer package.
Package memory provides an in memory store, which can be used as write through or write back cache Generated from series_store_int.go DO NOT EDIT!
Package memory provides an in memory store, which can be used as write through or write back cache Generated from series_store_int.go DO NOT EDIT!
gen

Jump to

Keyboard shortcuts

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