storage

package
v0.0.0-...-5b448de Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoStorageConfigured = errors.New("No storage backend has been configured")
)

ErrNoStorageConfigured error no storage has been configured

Functions

This section is empty.

Types

type Storage

type Storage interface {
	Start()
	StoreFlows(flows []*flow.Flow) error
	SearchFlows(fsq filters.SearchQuery) (*flow.FlowSet, error)
	SearchMetrics(fsq filters.SearchQuery, metricFilter *filters.Filter) (map[string][]*common.TimedMetric, error)
	Stop()
}

Storage interface a flow storage mechanism

func NewStorage

func NewStorage(backend string) (s Storage, err error)

NewStorage creates a new flow storage based on the backend

func NewStorageFromConfig

func NewStorageFromConfig() (s Storage, err error)

NewStorageFromConfig creates a new storage based configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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