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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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