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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultComparer = Comparer{}

DefaultComparer

Functions

func Compare added in v1.4.0

func Compare(al, bl *pb.LogItem) int

Compare .

Types

type Comparer added in v1.4.0

type Comparer struct{}

Comparer .

func (Comparer) Compare added in v1.4.0

func (c Comparer) Compare(a, b interface{}) int

type Filter added in v1.4.0

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

Filter .

type Logs added in v1.4.0

type Logs []*pb.LogItem

Logs .

func (Logs) Len added in v1.4.0

func (l Logs) Len() int

func (Logs) Less added in v1.4.0

func (l Logs) Less(i, j int) bool

func (Logs) Swap added in v1.4.0

func (l Logs) Swap(i, j int)

type Operator added in v1.4.0

type Operator int32

Operator .

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

type Selector added in v1.4.0

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

Selector .

type Storage added in v1.4.0

type Storage interface {
	NewWriter(ctx context.Context) (storekit.BatchWriter, error)
	Iterator(ctx context.Context, sel *Selector) (storekit.Iterator, error)
}

Storage .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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