mongodb

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mongo

type Mongo struct {
	Client        *mongo.Client
	Host          string
	Port          int
	User          string
	Password      string
	DB            string
	Collection    string
	RetrieveQuery *string
	Limit         *int64
	ClearQuery    *string
	FailQuery     *string
	AuthSource    *string
	// TLS
	EnableTLS   *bool
	TLSInsecure *bool
	TLSCert     *string
	TLSKey      *string
	TLSCA       *string
	// contains filtered or unexported fields
}

func (*Mongo) Cleanup

func (d *Mongo) Cleanup() error

func (*Mongo) ClearWork

func (d *Mongo) ClearWork() error

func (*Mongo) GetWork

func (d *Mongo) GetWork() (io.Reader, error)

func (*Mongo) HandleFailure

func (d *Mongo) HandleFailure() error

func (*Mongo) Init

func (d *Mongo) Init() error

func (*Mongo) LoadEnv

func (d *Mongo) LoadEnv(prefix string) error

func (*Mongo) LoadFlags

func (d *Mongo) LoadFlags() error

Jump to

Keyboard shortcuts

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