mongo

package
v0.9.42 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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) int64

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 ListAllUserCollections added in v0.9.36

func ListAllUserCollections(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 interface{}
	Max interface{}
}

func BucketAuto added in v0.9.25

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

func GetMinMax added in v0.9.36

func GetMinMax(session *mgo.Session, db string, collection string) (MinMax, error)

Directories

Path Synopsis
gtm

Jump to

Keyboard shortcuts

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