elasticsearch

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ElasticSearchStorage

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

ElasticSearchStorage describes a ElasticSearch database client

func New

func New() (*ElasticSearchStorage, error)

New creates a new ElasticSearch database client

func (*ElasticSearchStorage) SearchFlows

func (c *ElasticSearchStorage) SearchFlows(fsq filters.SearchQuery) (*flow.FlowSet, error)

SearchFlows search flow matching filters in the database

func (*ElasticSearchStorage) SearchMetrics

func (c *ElasticSearchStorage) SearchMetrics(fsq filters.SearchQuery, metricFilter *filters.Filter) (map[string][]*common.TimedMetric, error)

SearchMetrics search flow metrics matching filters in the database

func (*ElasticSearchStorage) Start

func (c *ElasticSearchStorage) Start()

Start the Database client

func (*ElasticSearchStorage) Stop

func (c *ElasticSearchStorage) Stop()

Stop the Database client

func (*ElasticSearchStorage) StoreFlows

func (c *ElasticSearchStorage) StoreFlows(flows []*flow.Flow) error

StoreFlows push a set of flows in the database

Jump to

Keyboard shortcuts

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