pkg

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDBDestination

type MongoDBDestination struct {
	Uri                     string
	ConnectionTimeoutString string
	ConnectionTimeout       time.Duration
	QueryTimeoutString      string
	QueryTimeout            time.Duration
	DatabaseName            string
	CollectionName          string
	MongoIndexModels        []mongo.IndexModel
	UpsertFilterFields      []string
	Client                  *mongo.Client
	Collection              *mongo.Collection
}

func NewMongoDBDestination

func NewMongoDBDestination(uri, connectionTimeout, queryTimeout, database, collection string, upsertFilterFields []string, mongoIndexModels []mongo.IndexModel) *MongoDBDestination

func (*MongoDBDestination) Initialize

func (d *MongoDBDestination) Initialize() error

func (*MongoDBDestination) Persist

func (d *MongoDBDestination) Persist(data []map[string]interface{}) error

Jump to

Keyboard shortcuts

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