filtering

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldType

type FieldType int
const (
	String    FieldType = iota
	Int       FieldType = iota
	Timestamp FieldType = iota
	StringMap FieldType = iota
)

type Filter

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

func NewFilter

func NewFilter(filter string, fields map[string]FieldType) (Filter, error)

func (*Filter) Matches

func (f *Filter) Matches(model map[string]interface{}) (bool, error)

Jump to

Keyboard shortcuts

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