Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { Find(collection string, ctx context.Context, filter interface{}, opts ...*options.FindOptions) (*mongo.Cursor, error) FindOne(collection string, ctx context.Context, filter interface{}, opts ...*options.FindOneOptions) *mongo.SingleResult InsertOne(collection string, ctx context.Context, document interface{}, opts ...*options.InsertOneOptions) (*mongo.InsertOneResult, error) UpdateOne(collection string, ctx context.Context, filter interface{}, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error) DeleteOne(collection string, ctx context.Context, filter interface{}, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error) Close() }
func NewProvider ¶
Click to show internal directories.
Click to hide internal directories.