filter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsObjectIdHex added in v1.0.6

func IsObjectIdHex(s string) bool

IsObjectIdHex returns whether s is a valid hex representation of an ObjectId. See the ObjectIdHex function.

Types

type FilterFunc

type FilterFunc func(map[string]interface{}) map[string]interface{}

func AddUriFieldFilter

func AddUriFieldFilter(inField, outField string) FilterFunc

func CreateFilters

func CreateFilters(p config.Cluster) []FilterFunc

func DropFilter

func DropFilter(conds []config.Condition) FilterFunc

func RemoveFieldFilter

func RemoveFieldFilter(fields []string) FilterFunc

func TransferFilter

func TransferFilter(field, target string) FilterFunc

Jump to

Keyboard shortcuts

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