collector

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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 New

func New(uri string, databases []string, collections []string) *Collector

New creates a new Collector instance.

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.

Jump to

Keyboard shortcuts

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