orientdb

package
v0.0.0-...-1d39891 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage describes a OrientDB database client

func New

func New(backend string) (*Storage, error)

New creates a new OrientDB database client

func (*Storage) Close

func (c *Storage) Close()

Close the database client

func (*Storage) SearchFlows

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

SearchFlows search flow matching filters in the database

func (*Storage) SearchMetrics

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

SearchMetrics searches flow metrics matching filters in the database

func (*Storage) SearchRawPackets

func (c *Storage) SearchRawPackets(fsq filters.SearchQuery, packetFilter *filters.Filter) (map[string][]*flow.RawPacket, error)

SearchRawPackets searches flow raw packets matching filters in the database

func (*Storage) Start

func (c *Storage) Start()

Start the database client

func (*Storage) Stop

func (c *Storage) Stop()

Stop the database client

func (*Storage) StoreFlows

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

StoreFlows pushes 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