events

package
v0.0.0-...-86833b7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InsertOneKey         = "odm.Manager.InsertOne"
	InsertManyKey        = "odm.Manager.InsertMany"
	DeleteOneKey         = "odm.Manager.DeleteOne"
	DeleteManyKey        = "odm.Manager.DeleteMany"
	UpdateOneKey         = "odm.Manager.UpdateOne"
	UpdateManyKey        = "odm.Manager.UpdateMany"
	ReplaceOneKey        = "odm.Manager.ReplaceOne"
	CountDocumentsKey    = "odm.Manager.CountDocuments"
	DistinctKey          = "odm.Manager.Distinct"
	FindOneKey           = "odm.Manager.FindOne"
	FindManyKey          = "odm.Manager.FindMany"
	FindOneAndDeleteKey  = "odm.Manager.FindOneAndDelete"
	FindOneAndReplaceKey = "odm.Manager.FindOneAndReplace"
	FindOneAndUpdateKey  = "odm.Manager.FindOneAndUpdate"
	FilterKey            = "odm.Manager.Filter"

	UpdateKeys = UpdateOneKey + "|" + UpdateManyKey
	DeleteKeys = DeleteOneKey + "|" + DeleteManyKey
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CountDocumentsEvent

type CountDocumentsEvent struct {
	event.Event
	CollectionName string
	Filter         interface{}
	Options        []*options.CountOptions
}

type DeleteEvent

type DeleteEvent struct {
	event.Event
	CollectionName string
	Filter         interface{}
	Options        []*options.DeleteOptions
}

type DistinctEvent

type DistinctEvent struct {
	event.Event
	CollectionName string
	Filter         interface{}
	FieldName      string
	Options        []*options.DistinctOptions
}

type FilterEvent

type FilterEvent struct {
	event.Event
	Filter         interface{}
	CollectionName string
}

type FindManyEvent

type FindManyEvent struct {
	event.Event
	CollectionName string
	Filter         interface{}
	Options        []*options.FindOptions
}

type FindOneAndDeleteEvent

type FindOneAndDeleteEvent struct {
	event.Event
	CollectionName string
	Filter         interface{}
	Options        []*options.FindOneAndDeleteOptions
}

type FindOneAndReplaceEvent

type FindOneAndReplaceEvent struct {
	event.Event
	CollectionName string
	Filter         interface{}
	Options        []*options.FindOneAndReplaceOptions
	Document       interface{}
}

type FindOneAndUpdateEvent

type FindOneAndUpdateEvent struct {
	event.Event
	CollectionName string
	Filter         interface{}
	Options        []*options.FindOneAndUpdateOptions
	Document       interface{}
}

type FindOneEvent

type FindOneEvent struct {
	event.Event
	CollectionName string
	Filter         interface{}
	Options        []*options.FindOneOptions
}

type InsertManyEvent

type InsertManyEvent struct {
	event.Event
	CollectionName string
	Documents      []interface{}
	Options        []*options.InsertManyOptions
}

type InsertOneEvent

type InsertOneEvent struct {
	event.Event
	CollectionName string
	Options        []*options.InsertOneOptions
	Document       interface{}
}

type ReplaceEvent

type ReplaceEvent struct {
	event.Event
	CollectionName string
	Filter         interface{}
	Document       interface{}
	Options        []*options.ReplaceOptions
}

type UpdateEvent

type UpdateEvent struct {
	event.Event
	CollectionName string
	Filter         interface{}
	Document       interface{}
	Options        []*options.UpdateOptions
}

Jump to

Keyboard shortcuts

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