Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeEvent ¶
type ChangeEvent struct { ID struct { Data string `bson:"_data" json:"_data"` } `bson:"_id" json:"_id"` OperationType string `bson:"operationType" json:"operationType"` FullDocument bson.Raw `bson:"fullDocument" json:"fullDocument,omitempty"` Namespace struct { DB string `bson:"db" json:"db,omitempty"` Collection string `bson:"coll" json:"coll,omitempty"` } `bson:"ns" json:"ns"` To struct { DB string `bson:"db" json:"db,omitempty"` Collection string `bson:"coll" json:"coll,omitempty"` } `bson:"to" json:"to,omitempty"` DocumentKey bson.Raw `bson:"documentKey" json:"documentKey,omitempty"` UpdateDescription struct { UpdatedFields bson.Raw `bson:"updatedFields" json:"updatedFields,omitempty"` RemovedFields []string `bson:"removedFields" json:"removedFields,omitempty"` } `bson:"updateDescription" json:"updateDescription,omitempty"` ClusterTime primitive.Timestamp `bson:"clusterTime" json:"clusterTime"` TransactionNumber int64 `bson:"txnNumber" json:"txnNumber,omitempty"` SessionIdentifier bson.Raw `bson:"lsid" json:"lsid,omitempty"` }
ChangeEvent is the response document of change stream. See https://docs.mongodb.com/manual/reference/change-events/ for more details.
Click to show internal directories.
Click to hide internal directories.