query_manager

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConditionForOperator

func GetConditionForOperator(fieldName string, field interface{}, operator string) bson.D

func GetMatchAggOperation

func GetMatchAggOperation(fieldName string, paramValue string, aggOperations []bson.D) []bson.D

func GetMatchingConditions

func GetMatchingConditions(fieldName string, fieldValue interface{}, sizeOperator string) bson.E

func Paginate

func Paginate(unPaginatedResult []*model.MetaBackend, limit int32, offset int32) []*model.MetaBackend

func Translate

func Translate(in *pb.ListMetadataRequest) []bson.D

func ValidateInput

func ValidateInput(in *pb.ListMetadataRequest) (okie bool, err error)

Types

type ValidationError

type ValidationError struct {
	ErrMsg string
}

func (*ValidationError) Error

func (e *ValidationError) Error() string

Jump to

Keyboard shortcuts

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