storage

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filters

type Filters struct {
	Term  TermFilter
	Range map[string]interface{}
}

func NewFilters added in v0.4.0

func NewFilters() *Filters

type RangeFilter added in v0.4.0

type RangeFilter struct {
	Gt  interface{} `json:"gt,omitempty"`
	Lt  interface{} `json:"lt,omitempty"`
	Gte interface{} `json:"gte,omitempty"`
	Lte interface{} `json:"lte,omitempty"`
}

type Storage

type Storage interface {
	Start()
	StoreFlows(flows []*flow.Flow) error
	SearchFlows(filters *Filters) ([]*flow.Flow, error)
	Stop()
}

type TermFilter added in v0.4.0

type TermFilter struct {
	Op    TermFilterOp
	Terms map[string]interface{}
}

type TermFilterOp added in v0.4.0

type TermFilterOp int
const (
	OR TermFilterOp = iota
	AND
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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