convertors

package
v0.0.0-...-de033bc Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomConvertors []CustomConvertor

Functions

func ConvertAnd

func ConvertAnd(value interface{}) (bson.D, error)

func ConvertEqual

func ConvertEqual(value interface{}) (bson.D, error)

func ConvertFilter

func ConvertFilter(value interface{}) (bson.D, error)

func ConvertNot

func ConvertNot(value interface{}) (bson.D, error)

func ConvertNotEqual

func ConvertNotEqual(value interface{}) (bson.D, error)

func ConvertOr

func ConvertOr(value interface{}) (bson.D, error)

func GetArguments

func GetArguments(arguments []interface{}) (interface{}, interface{}, error)

func InternalConvert

func InternalConvert(rules interface{}) (interface{}, error)

Types

type CustomConvertor

type CustomConvertor struct {
	Name     string
	Function func(interface{}) (primitive.D, error)
}

Jump to

Keyboard shortcuts

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