filters

package
v0.0.0-...-c7ff7ed Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: GPL-3.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter interface {
	// contains filtered or unexported methods
}

type Item

type Item struct {
	Operator Operator    `json:"op,omitempty"`
	Value    interface{} `json:"value"`
}

type Items

type Items []*Item

type Operator

type Operator string
const (
	FilterOperatorEquals              Operator = "$eq"
	FilterOperatorNotEquals           Operator = "$ne"
	FilterOperatorGreaterThan         Operator = "$gt"
	FilterOperatorGreaterThanOrEquals Operator = "$gte"
	FilterOperatorLessThan            Operator = "$lt"
	FilterOperatorLessThanOrEquals    Operator = "$lte"
	FilterOperatorIn                  Operator = "$in"
	FilterOperatorNotIn               Operator = "$nin"
)

type Validator

type Validator func(interface{}) error

type ValueTypeMap

type ValueTypeMap map[string]string

Jump to

Keyboard shortcuts

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