mongodb

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 12 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
	AuthSource string
	// TLS
	EnableTLS   *bool
	TLSInsecure *bool
	TLSCert     *string
	TLSKey      *string
	TLSCA       *string
}

func (*Mongo) Cleanup

func (d *Mongo) Cleanup() 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

func (*Mongo) Push

func (d *Mongo) Push(r io.Reader) error

Jump to

Keyboard shortcuts

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