Documentation ¶
Index ¶
- func CountDocuments(client *mongo.Client, collectionName string, key string, value interface{}) int
- func CreateClient() *mongo.Client
- func DeleteAll(client *mongo.Client, collectionName string) int64
- func DisconnectClient(client *mongo.Client)
- func GetAny(client *mongo.Client, collectionName string, key string, value interface{}) []primitive.M
- func GetOne(client *mongo.Client, collectionName string, ...) *mongo.SingleResult
- func PutAny(client *mongo.Client, collectionName string, customStruct interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountDocuments ¶
func CreateClient ¶
func DisconnectClient ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.