mongo

package
v0.0.0-alpha6 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: AGPL-3.0 Imports: 5 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 {
	// contains filtered or unexported fields
}

Mongo -

func New

func New(uri string, database string, opts ...Option) (*Mongo, error)

New -

func (*Mongo) Close

func (m *Mongo) Close()

Close -.

func (*Mongo) Database

func (m *Mongo) Database() *mongo.Database

Database -

func (*Mongo) GetConnectionType

func (m *Mongo) GetConnectionType() string

GetConnectionType -

func (*Mongo) IsReady

func (m *Mongo) IsReady(ctx context.Context) (bool, error)

IsReady -

type Option

type Option func(*Mongo)

Option -.

func ConnTimeout

func ConnTimeout(timeout time.Duration) Option

ConnTimeout -.

func MaxPoolSize

func MaxPoolSize(size int) Option

MaxPoolSize -.

Jump to

Keyboard shortcuts

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