storage

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Key   string
	Op    Operator
	Value interface{}
}

Filter .

type Operator

type Operator int32

Operator .

const (
	// EQ equal
	EQ Operator = iota
	REGEXP
)

type Selector

type Selector struct {
	Start   int64
	End     int64
	Filters []*Filter
	Debug   bool
	Options map[string]interface{}
}

Selector .

type Storage

type Storage interface {
	NewWriter(ctx context.Context) (storekit.BatchWriter, error)
	QueryPaged(ctx context.Context, sel *Selector, pageNo, pageSize int) ([]*event.Event, error)
}

Storage .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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