dataModel

package
v0.0.0-...-e36d997 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeStreamDocument

type ChangeStreamDocument struct {
	Id                  string `bson:"_id"`
	Database            string `bson:"database"`
	Collection          string `bson:"collection"`
	OperationType       string `bson:"operationType"`
	TriggerUpdatedField string `bson:"triggerUpdatedField"`
}

type Oplog

type Oplog struct {
	DocumentKey       OplogDocumentKeyObject       `bson:"documentKey"`
	Namespace         OplogNamespaceObject         `bson:"ns"`
	OperationType     string                       `bson:"operationType"`
	UpdateDescription OplogUpdateDescriptionObject `bson:"updateDescription"`
}

type OplogDocumentKeyObject

type OplogDocumentKeyObject struct {
	DocumentId string `bson:"_id"`
}

type OplogNamespaceObject

type OplogNamespaceObject struct {
	Database   string `bson:"db"`
	Collection string `bson:"coll"`
}

type OplogUpdateDescriptionObject

type OplogUpdateDescriptionObject struct {
	UpdatedFields map[string]interface{} `bson:"updatedFields"`
}

Jump to

Keyboard shortcuts

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