query

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 3 Imported by: ? modules, 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

View Source
const (
	OpA    Operator = "A"
	OpG             = "G"
	OpE             = "E"
	OpL             = "L"
	OpGOrE          = "GE"
	OpLOrE          = "LE"
)
View Source
const BatchTimeOut = 10 * time.Millisecond
View Source
const Buffer = 500

Variables

View Source
var All = &Criteria{criteriaObject{Op: OpA}}
View Source
var Equal = &Criteria{criteriaObject{Op: OpE}}
View Source
var Greater = &Criteria{criteriaObject{Op: OpG}}
View Source
var GreaterOrEqual = &Criteria{criteriaObject{Op: OpGOrE}}
View Source
var Less = &Criteria{criteriaObject{Op: OpL}}
View Source
var LessOrEqual = &Criteria{criteriaObject{Op: OpLOrE}}

Functions

This section is empty.

Types

type Criteria

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

func (*Criteria) Expression

func (criteria *Criteria) Expression() string

func (*Criteria) Marshal

func (criteria *Criteria) Marshal() ([]byte, error)

func (*Criteria) Operator

func (criteria *Criteria) Operator() Operator

func (*Criteria) UnmarshalJSON

func (criteria *Criteria) UnmarshalJSON(b []byte) error

func (*Criteria) Validate

func (criteria *Criteria) Validate() error

func (*Criteria) With

func (criteria *Criteria) With(exp string) *Criteria

type Index

type Index struct {
	Name      string   `json:"n"`
	Pattern   string   `json:"p"`
	JsonPaths []string `json:"j,omitempty"`
}

type Operator

type Operator string

type Row

type Row struct {
	Key   string        `json:"k,omitempty"`
	Value string        `json:"v,omitempty"`
	TTL   time.Duration `json:"t,omitempty"`
}

Jump to

Keyboard shortcuts

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