dbConnPool

package
v0.0.0-...-84fc14a Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoConnPool

type MongoConnPool struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*MongoConnPool) Init

func (p *MongoConnPool) Init(size int, mongoUrl string, usrName string, pass string) error

func (*MongoConnPool) ReturnConn

func (p *MongoConnPool) ReturnConn(client *mongo.Client)

func (*MongoConnPool) WaitForOneConn

func (p *MongoConnPool) WaitForOneConn(ctx context.Context) (*mongo.Client, error)

Jump to

Keyboard shortcuts

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