check

package
v0.0.0-...-27f04c1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OpMap = map[operation.OP]string{
	operation.EQ:  "=",
	operation.NE:  "!=",
	operation.LE:  "<=",
	operation.GE:  ">=",
	operation.LT:  "<",
	operation.GT:  ">",
	operation.AND: "and",
	operation.OR:  "or",
	operation.NOT: "not",
	operation.IN:  "in",
}

Functions

func UtilCheck

func UtilCheck(cValue interface{}, op operation.OP, value interface{}, e operation.Operation) bool

Types

type AndChecker

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

func NewAndChecker

func NewAndChecker(c []Checker) *AndChecker

func (*AndChecker) Check

func (a *AndChecker) Check(id document.DocId) bool

func (*AndChecker) DebugInfo

func (a *AndChecker) DebugInfo() *debug.Debug

func (*AndChecker) Marshal

func (a *AndChecker) Marshal() map[string]interface{}

func (*AndChecker) SetDebug

func (a *AndChecker) SetDebug(level int)

func (*AndChecker) Unmarshal

func (a *AndChecker) Unmarshal(idx *index.Indexer, res map[string]interface{}, e operation.Operation) Checker

type Checker

type Checker interface {
	Check(id document.DocId) bool
	DebugInfo() *debug.Debug
	SetDebug(level int)
	Marshal() map[string]interface{}
	Unmarshal(idx *index.Indexer, res map[string]interface{}, e operation.Operation) Checker
}

type CheckerImpl

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

func NewChecker

func NewChecker(si datastruct.Iterator, value interface{}, op operation.OP, e operation.Operation, transfer bool) *CheckerImpl

func (*CheckerImpl) Check

func (c *CheckerImpl) Check(id document.DocId) bool

func (*CheckerImpl) DebugInfo

func (c *CheckerImpl) DebugInfo() *debug.Debug

func (*CheckerImpl) Marshal

func (c *CheckerImpl) Marshal() map[string]interface{}

func (*CheckerImpl) SetDebug

func (c *CheckerImpl) SetDebug(level int)

func (*CheckerImpl) Unmarshal

func (c *CheckerImpl) Unmarshal(idx *index.Indexer, res map[string]interface{}, e operation.Operation) Checker

type InChecker

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

func NewInChecker

func NewInChecker(si datastruct.Iterator, value interface{}, e operation.Operation, transfer bool) *InChecker

func (*InChecker) Check

func (i *InChecker) Check(id document.DocId) bool

func (*InChecker) DebugInfo

func (i *InChecker) DebugInfo() *debug.Debug

func (*InChecker) Marshal

func (i *InChecker) Marshal() map[string]interface{}

func (*InChecker) SetDebug

func (i *InChecker) SetDebug(level int)

func (*InChecker) Unmarshal

func (i *InChecker) Unmarshal(idx *index.Indexer, res map[string]interface{}, e operation.Operation) Checker

type NotAndChecker

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

func NewNotAndChecker

func NewNotAndChecker(c []Checker) *NotAndChecker

func (*NotAndChecker) Check

func (na *NotAndChecker) Check(id document.DocId) bool

func (*NotAndChecker) DebugInfo

func (na *NotAndChecker) DebugInfo() *debug.Debug

func (*NotAndChecker) Marshal

func (na *NotAndChecker) Marshal() map[string]interface{}

func (*NotAndChecker) SetDebug

func (na *NotAndChecker) SetDebug(level int)

func (*NotAndChecker) Unmarshal

func (na *NotAndChecker) Unmarshal(idx *index.Indexer, res map[string]interface{}, e operation.Operation) Checker

type NotChecker

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

func NewNotChecker

func NewNotChecker(si datastruct.Iterator, value interface{}, e operation.Operation, transfer bool) *NotChecker

func (*NotChecker) Check

func (nc *NotChecker) Check(id document.DocId) bool

func (*NotChecker) DebugInfo

func (nc *NotChecker) DebugInfo() *debug.Debug

func (*NotChecker) Marshal

func (nc *NotChecker) Marshal() map[string]interface{}

func (*NotChecker) SetDebug

func (nc *NotChecker) SetDebug(level int)

func (*NotChecker) Unmarshal

func (nc *NotChecker) Unmarshal(idx *index.Indexer, res map[string]interface{}, e operation.Operation) Checker

type OrChecker

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

func NewOrChecker

func NewOrChecker(c []Checker) *OrChecker

func (*OrChecker) Check

func (o *OrChecker) Check(id document.DocId) bool

func (*OrChecker) DebugInfo

func (o *OrChecker) DebugInfo() *debug.Debug

func (*OrChecker) Marshal

func (o *OrChecker) Marshal() map[string]interface{}

func (*OrChecker) SetDebug

func (o *OrChecker) SetDebug(level int)

func (*OrChecker) Unmarshal

func (o *OrChecker) Unmarshal(idx *index.Indexer, res map[string]interface{}, e operation.Operation) Checker

Jump to

Keyboard shortcuts

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