Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector is a used to fetch change stream from a client, database or collection.
func (*Collector) Collect ¶
func (c *Collector) Collect(opts ...*options.ChangeStreamOptions) (*mongo.ChangeStream, error)
Collect returns a change stream for all changes on the corresponding container.
The opts parameter can be used to specify options for change stream creation. See https://godoc.org/go.mongodb.org/mongo-driver/mongo/options#ChangeStreamOptions for details.
Click to show internal directories.
Click to hide internal directories.