Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClientDisconnected = errors.New("could not reach mongodb: connection closed")
Functions ¶
This section is empty.
Types ¶
type ChangeEvent ¶
type ChangeEvent struct { OperationType string `json:"operationType"` FullDocument changeEventDocument `json:"fullDocument"` ResumeToken changeEventResumeToken `json:"_id"` Ns changeEventNs `json:"ns"` }
func DecodeChangeEvent ¶
func DecodeChangeEvent(changeEvent []byte) (*ChangeEvent, error)
type ChangeStreamCallback ¶
type ChangeStreamCallback func(event *ChangeEvent, json []byte)
type Client ¶
func (*Client) StartChangeStream ¶
func (c *Client) StartChangeStream(callback ChangeStreamCallback)
func (*Client) StopChangeStream ¶
func (c *Client) StopChangeStream()
Click to show internal directories.
Click to hide internal directories.