filter

package
v0.0.0-...-bfeb8cb Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataTypeStr = "string"
	DataTypeInt = "int"

	OperatorEq            = "eq"
	OperatorNotEq         = "neq"
	OperatorLowerThan     = "lt"
	OperatorLowerThanEq   = "lte"
	OperatorGreaterThan   = "gt"
	OperatorGreaterThanEq = "gte"
)

Variables

This section is empty.

Functions

func ParseOperator

func ParseOperator(op string) (string, error)

Types

type Field

type Field struct {
	Name  string
	Op    string
	Value string
	Type  string
}

type Options

type Options interface {
	AddField(name, op, value, type_ string) error
	Fields() []Field
}

func NewOptions

func NewOptions() Options

Jump to

Keyboard shortcuts

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