Documentation ¶
Index ¶
- func GetConditionForOperator(fieldName string, field interface{}, operator string) bson.D
- func GetMatchAggOperation(fieldName string, paramValue string, aggOperations []bson.D) []bson.D
- func GetMatchingConditions(fieldName string, fieldValue interface{}, sizeOperator string) bson.E
- func Paginate(unPaginatedResult []*model.MetaBackend, limit int32, offset int32) []*model.MetaBackend
- func Translate(in *pb.ListMetadataRequest) []bson.D
- func ValidateInput(in *pb.ListMetadataRequest) (okie bool, err error)
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConditionForOperator ¶
func GetMatchAggOperation ¶
func GetMatchingConditions ¶
func Paginate ¶
func Paginate(unPaginatedResult []*model.MetaBackend, limit int32, offset int32) []*model.MetaBackend
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
Click to show internal directories.
Click to hide internal directories.