cdc_mongo

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(opts *cli.Options) (*mongo.Client, error)

func Read

func Read(opts *cli.Options) error

func Relay

func Relay(opts *cli.Options) error

Types

type CDCMongo

type CDCMongo struct {
	Id      string
	Service *mongo.Client
	Context context.Context
	Options *cli.Options
	// contains filtered or unexported fields
}

func (*CDCMongo) Read

func (m *CDCMongo) Read() error

Read attempts to read a change stream from mongo

type Relayer

type Relayer struct {
	Options *cli.Options
	RelayCh chan interface{}

	Service        *mongo.Client
	DefaultContext context.Context
	// contains filtered or unexported fields
}

func (*Relayer) Relay

func (r *Relayer) Relay() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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