filter

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataErrorFormat = "[%s] %s : %s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Key   string      `json:"key"`
	Value interface{} `json:"value"`
}

func UseFilter

func UseFilter(filter interface{}) (*Filter, *er.WdbError)

func (Filter) Filter

func (f Filter) Filter(primaryKey model.Identifier, data map[model.Identifier]*model.Record) map[model.Identifier]*model.Record

func (Filter) Iterate

func (f Filter) Iterate(primaryKey model.Identifier, data map[model.Identifier]*model.Record, iterator func(*model.Identifier, *model.Record))

Jump to

Keyboard shortcuts

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