filtering

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Name string
	Type FieldType
}

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 []Field) (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