destination

package
v0.0.0-...-5fa7609 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

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

func NewSource

func NewSource(ctx context.Context) *Destination

func (*Destination) Add

func (o *Destination) Add(param *Params) (interface{}, bool, error)

func (*Destination) Connect

func (o *Destination) Connect(config settings.MongoUri) error

func (*Destination) Delete

func (o *Destination) Delete(param *Params) (bool, error)

func (*Destination) Drop

func (o *Destination) Drop(param *Params) error

func (*Destination) Upsert

func (o *Destination) Upsert(param *Params) (bool, error)

type Params

type Params struct {
	DbName  string
	ColName string
	Id      primitive.ObjectID
	Record  map[string]interface{}
}

Jump to

Keyboard shortcuts

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