Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Change ¶
type Change struct { ID struct { Data string `bson:"_data"` } `bson:"_id"` OperationType OpType `bson:"operationType"` FullDocument bson.Raw `bson:"fullDocument"` NS struct { DB string `bson:"db"` Coll string `bson:"coll"` } `bson:"ns"` To *struct { DB string `bson:"db"` Coll string `bson:"coll"` } `bson:"to"` DocumentKey bson.Raw `bson:"documentKey"` UpdateDescription *struct { UpdatedFields bson.Raw `bson:"updatedFields"` RemovedFields []string `bson:"removedFields"` } `bson:"updateDescription"` ClusterTime primitive.Timestamp `bson:"clusterTime"` TxnNumber int64 `bson:"txnNumber"` LSID bson.Raw `bson:"lsid"` }
https://docs.mongodb.com/manual/reference/change-events/
func (*Change) DocumentKeyID ¶
func (ch *Change) DocumentKeyID() interface{}
type DecodeFunc ¶
type Decoder ¶
type Decoder func() (db, coll string, decode DecodeFunc)
type Filter ¶
type Filter func() (db, coll string, filter FilterFunc)
type FilterFunc ¶
type NoDecodersForFilterError ¶
func IsNoDecodersForFilterError ¶
func IsNoDecodersForFilterError(err error) (*NoDecodersForFilterError, bool)
func (*NoDecodersForFilterError) Error ¶
func (e *NoDecodersForFilterError) Error() string
type Option ¶
type Option func(wa *Watch)
func WithDecodeFunc ¶
func WithDecodeFunc(db, coll string, decoder DecodeFunc) Option
func WithDecoder ¶
Click to show internal directories.
Click to hide internal directories.