dbpool

package
v0.0.0-...-d1d92f6 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const OplogNS = "oplog.rs"

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoConn

type MongoConn struct {
	Session *mgo.Session
	URL     string
}

func NewMongoConn

func NewMongoConn(url string, primaryRequired bool) (*MongoConn, error)

func (*MongoConn) AcquireReplicaSetName

func (conn *MongoConn) AcquireReplicaSetName() string

func (*MongoConn) Close

func (conn *MongoConn) Close()

func (*MongoConn) HasOplogNs

func (conn *MongoConn) HasOplogNs() bool

func (*MongoConn) HasUniqueIndex

func (conn *MongoConn) HasUniqueIndex() bool

func (*MongoConn) IsGood

func (conn *MongoConn) IsGood() bool

Jump to

Keyboard shortcuts

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