controllers

package
v0.0.0-...-0406d23 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Index

func Index(item Indexer, data primitive.M) error

func IndexStream

func IndexStream(waitGroup *sync.WaitGroup, stream *mongo.ChangeStream, collectionName string)

Types

type Indexer

type Indexer interface {
	Collection() string
	Insert(collection typesense.CollectionInterface) error
	Update(collection typesense.CollectionInterface, documentKey primitive.M, updatedFields primitive.M, removedFields primitive.A) error
	Delete(collection typesense.CollectionInterface, documentKey primitive.M) error
}

Jump to

Keyboard shortcuts

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