Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func EnsureLocationIndex ¶
func EnsureLocationIndex(collection *mgo.Collection) error
func InCollection ¶
func InCollection(collection *mgo.Collection, selector interface{}) bool
InCollection returns whether document(s) matching the query the specified collection exist
func UniqueInCollection ¶
func UniqueInCollection(collection *mgo.Collection, selector interface{}) bool
UniqueInCollection returns whether one and only one document matching the query in the specified collection exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.