Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenForOperations ¶
func ListenForOperations(config MongoDBConfig, changeStreamCallback ChangeStreamCallback)
Types ¶
type ChangeStreamCallback ¶
ChangeStreamCallback defines a function to handle change stream documents.
type MongoDBConfig ¶
type MongoDBConfig struct { Cluster string Username string Password string Database string Collection string Trigger int }
MongoDBConfig holds MongoDB configuration details.
type OperationHandler ¶
type OperationHandler func()
OperationHandler defines a function to handle specific operations.
Click to show internal directories.
Click to hide internal directories.