Filter

package
v0.0.0-...-664f50f Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 2 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 interface {
	And(filters ...Filter)
	Or(filters ...Filter)
	Generate() string
}

func CombineAnd

func CombineAnd(filters ...Filter) Filter

(filter *and* filter *and* filter ..)

func CombineOr

func CombineOr(filters ...Filter) Filter

(filter *or* filter *or* filter ..)

func CurrentKeysOnly

func CurrentKeysOnly() Filter

func CurrentWithRevision

func CurrentWithRevision(revision string) Filter

func DeletedKeysOnly

func DeletedKeysOnly() Filter

func Equal

func Equal(field string, value string) Filter

x eq y

func ExcludeCurrent

func ExcludeCurrent() Filter

func ExcludeEvents

func ExcludeEvents() Filter

func ExcludeRows

func ExcludeRows() Filter

func ExcludeSysRecords

func ExcludeSysRecords() Filter

func GreaterThanOrEqual

func GreaterThanOrEqual(field string, value string) Filter

x ge y

func IncludeDataRows

func IncludeDataRows(revision string) Filter

func IncludeDataRowsForAny

func IncludeDataRowsForAny() Filter

func IncludeEvents

func IncludeEvents() Filter

func LeaderElectionEntity

func LeaderElectionEntity(electionName string) Filter

func LeaseId

func LeaseId(id string) Filter

func Leases

func Leases() Filter

func LessThan

func LessThan(field string, value string) Filter

x lt y

func NewFilter

func NewFilter() Filter

func NotEqual

func NotEqual(field string, value string) Filter

x ne y

func Partition

func Partition(pKey string) Filter

returns a filter expression for PartitionKey

func PartitionKeyPrefix

func PartitionKeyPrefix(pKey string) Filter

func RevisionAny

func RevisionAny(revision string) Filter

func RevisionLessThan

func RevisionLessThan(revision string) Filter

for non current

func WithLease

func WithLease(id string) Filter

Jump to

Keyboard shortcuts

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