getter

package
v0.0.0-...-b4bb62b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFieldNotFound = errors.New("Field not found")

ErrFieldNotFound error field not found

Functions

This section is empty.

Types

type BoolPredicate

type BoolPredicate func(b bool) bool

BoolPredicate is a function that applies a test against a boolean

type Getter

type Getter interface {
	GetField(field string) (interface{}, error)
	GetFieldKeys() []string
	GetFieldBool(field string) (bool, error)
	GetFieldInt64(field string) (int64, error)
	GetFieldString(field string) (string, error)
	MatchBool(field string, predicate BoolPredicate) bool
	MatchInt64(field string, predicate Int64Predicate) bool
	MatchString(field string, predicate StringPredicate) bool
}

Getter describes filter getter fields

type Int64Predicate

type Int64Predicate func(i int64) bool

Int64Predicate is a function that applies a test against an integer

type StringPredicate

type StringPredicate func(s string) bool

StringPredicate is a function that applies a test against a string

Jump to

Keyboard shortcuts

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