models

package
v0.0.0-...-cb7d7c7 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeEvent

type ChangeEvent struct {
	ID                bsonx.Doc   `bson:"_id" json:"_id"`
	Operation         string      `bson:"operationType" json:"operation"`
	Document          bson.M      `bson:"fullDocument" json:"document"`
	Namespace         namespace   `bson:"ns" json:"namespace"`
	NewCollectionName bson.M      `bson:"to" json:"new_collection_name"`
	DocumentKey       documentKey `bson:"documentKey" json:"document_key"`
	Updates           bson.M      `bson:"updateDescription" json:"updates"`
	ClusterTime       interface{} `bson:"clusterTime" json:"cluster_time"`
	Transaction       int64       `bson:"txnNumber" json:"transaction"`
	SessionID         bson.M      `bson:"lsid" json:"session_id"`
}

mongo订阅消息对象

Jump to

Keyboard shortcuts

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