filters

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(field string, op BoolOp, value bool) *odata.Filter

func Date

func Date(field string, op DateOp, value time.Time) *odata.Filter

func EscapeString

func EscapeString(src string) string

func Guid

func Guid(field string, op GuidOp, value odata.Guid) *odata.Filter

func Int

func Int(field string, op IntOp, value int) *odata.Filter

func String

func String(field string, op StringOp, value string) *odata.Filter

Types

type BoolOp

type BoolOp int
const (
	BoolOpEq BoolOp = iota
	BoolOpNe
)

type DateOp

type DateOp int
const (
	DateOpEq DateOp = iota
	DateOpNe
	DateOpGt
	DateOpGe
	DateOpLt
	DateOpLe
)

type Filter

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

func (Filter) And

func (f Filter) And(f1 *Filter) *Filter

func (Filter) AndNot

func (f Filter) AndNot(f1 *Filter) *Filter

func (Filter) Or

func (f Filter) Or(f1 *Filter) *Filter

func (Filter) ToString

func (f Filter) ToString() string

type GuidOp

type GuidOp int
const (
	GuidOpEq GuidOp = iota
	GuidOpNe
)

type IntOp

type IntOp int
const (
	IntOpEq IntOp = iota
	IntOpNe
	IntOpGt
	IntOpGe
	IntOpLt
	IntOpLe
)

type StringOp

type StringOp int
const (
	StringOpEq StringOp = iota
	StringOpNe
	StringOpSubstringof
	StringOpEndswith
	StringOpStartswith
)

Jump to

Keyboard shortcuts

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