mongo

package
v0.9.35 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count added in v0.9.25

func Count(session *mgo.Session, db string, collection string) int

func CreateMongoSession

func CreateMongoSession(cfg *config.MongoConnConfig) (*mgo.Session, error)

func IsDeadSignal added in v0.9.25

func IsDeadSignal(op *gtm.Op, pipeline string) bool

func IsEmpty added in v0.9.25

func IsEmpty(session *mgo.Session, db string, collection string) bool

func ListAllCollections added in v0.9.25

func ListAllCollections(session *mgo.Session) map[string][]string

func SendDeadSignal added in v0.9.25

func SendDeadSignal(session *mgo.Session, pipeline string) error

Types

type MinMax added in v0.9.25

type MinMax struct {
	Min bson.ObjectId
	Max bson.ObjectId
}

func BucketAuto added in v0.9.25

func BucketAuto(session *mgo.Session, db string, collection string, sampleCnt int, bucketCnt int) ([]MinMax, error)

Directories

Path Synopsis
gtm

Jump to

Keyboard shortcuts

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