Documentation ¶
Index ¶
- func FindAll(ctx context.Context, collectionName string, query bson.M) ([]interface{}, error)
- func FindOne(ctx context.Context, collectionName string, query bson.M, object interface{}) error
- func GetMongoClient(context context.Context) (*mongo.Client, error)
- func Insert(ctx context.Context, collectionName string, objectToInsert interface{}) error
- func Remove(ctx context.Context, collectionName string, query bson.M) error
- func Update(ctx context.Context, collectionName string, objectID bson.ObjectId, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMongoClient ¶
GetMongoClient return a copy of mongodb session
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.