Documentation ¶
Index ¶
- Constants
- func ExtractKeys(expression bson.D) []string
- func GenerateShortUUIDHex() (string, error)
- func GetMapKeys(val map[string]interface{}) []string
- func IsNilOrZero(i interface{}) bool
- func NavigatePath(path string, data map[string]interface{}) (string, bool)
- type Analyzer
- type DocumentKey
- type DocumentKind
- type IDestination
- type IDocumentKey
- type ISource
- type Index
Constants ¶
View Source
const MetaDataID = "meta().id"
Variables ¶
This section is empty.
Functions ¶
func ExtractKeys ¶
ExtractKeys traverses a MongoDB filter expression and collects unique field names.
func GenerateShortUUIDHex ¶
func GetMapKeys ¶
func IsNilOrZero ¶
func IsNilOrZero(i interface{}) bool
IsNilOrZero checks if the provided interface{} value is nil, a nil pointer, a nil interface, or a zero value of any type.
Types ¶
type Analyzer ¶
type Analyzer[T any] interface { Init(index []T, suk IDocumentKey) AnalyzeData(data map[string]interface{}) GetCouchbaseQuery(bucket, scope, collection string) []Index }
type DocumentKey ¶
func NewDocumentKey ¶
func NewDocumentKey() *DocumentKey
func (*DocumentKey) Get ¶
func (d *DocumentKey) Get() string
func (*DocumentKey) Set ¶
func (d *DocumentKey) Set(kind DocumentKind, value string)
type DocumentKind ¶
type DocumentKind string
const ( DkString DocumentKind = "string" DkUuid DocumentKind = "UUID" DkField DocumentKind = "field" )
type IDestination ¶
type IDocumentKey ¶
type IDocumentKey interface { Set(kind DocumentKind, value string) Get() string }
Click to show internal directories.
Click to hide internal directories.