mongo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoSink

type MongoSink struct {
	// contains filtered or unexported fields
}

MongoSink represents an Mongo sink connector.

func NewMongoSink

func NewMongoSink(ctx context.Context, db *mongo.Database, conf SinkConfig) (*MongoSink, error)

NewMongoSink returns a new MongoSink instance.

func (*MongoSink) In

func (ks *MongoSink) In() chan<- interface{}

In returns an input channel for receiving data.

type SinkConfig

type SinkConfig struct {
	CollectionName            string
	CollectionCapMaxDocuments int64
	CollectionCapMaxSizeBytes int64
	CollectionCapEnable       bool
}

Jump to

Keyboard shortcuts

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