stores

package
v0.0.0-...-7d4be2b Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2014 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InitFn = make(map[string]func(config config.Main) Store)
View Source
var List = make(map[string]*Store)

Functions

func Init

func Init(config config.Main) (err error)

Types

type Es

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

func (Es) Add

func (e Es) Add(metric metrics.Metric) (err error)

func (Es) Get

func (e Es) Get(name string) (our_el *chains.ChainEl, err error)

func (Es) Has

func (e Es) Has(name string) (found bool, err error)

func (Es) List

func (e Es) List() (list []string, err error)

type InfluxdbStore

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

func (InfluxdbStore) Add

func (i InfluxdbStore) Add(metric metrics.Metric) (err error)

func (InfluxdbStore) Get

func (i InfluxdbStore) Get(name string) (our_el *chains.ChainEl, err error)

func (InfluxdbStore) Has

func (i InfluxdbStore) Has(name string) (found bool, err error)

func (InfluxdbStore) List

func (i InfluxdbStore) List() (list []string, err error)

type Store

type Store interface {
	Add(metric metrics.Metric) (err error)
	Get(name string) (our_el *chains.ChainEl, err error)
	Has(name string) (found bool, err error)
	List() (list []string, err error)
}

func NewEs

func NewEs(config config.Main) Store

func NewInfluxStore

func NewInfluxStore(config config.Main) Store

func NewTextStore

func NewTextStore(config config.Main) Store

type TextStore

type TextStore struct {
	BasePath string
}

func (TextStore) Add

func (t TextStore) Add(metric metrics.Metric) (err error)

func (TextStore) Get

func (t TextStore) Get(name string) (our_el *chains.ChainEl, err error)

func (TextStore) Has

func (t TextStore) Has(name string) (found bool, err error)

func (TextStore) List

func (t TextStore) List() (list []string, err error)

Jump to

Keyboard shortcuts

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