Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Collection ¶
type Collection interface { FindOne(context.Context, interface{}) SingleResult Find(context.Context, interface{}, ...*options.FindOptions) (Cursor, error) InsertOne(context.Context, interface{}) (interface{}, error) InsertMany(context.Context, []interface{}) ([]interface{}, error) UpdateOne(context.Context, interface{}, interface{}, ...*options.UpdateOptions) (*mongo.UpdateResult, error) UpdateMany(context.Context, interface{}, interface{}, ...*options.UpdateOptions) (*mongo.UpdateResult, error) DeleteOne(context.Context, interface{}) (int64, error) CountDocuments(context.Context, interface{}, ...*options.CountOptions) (int64, error) Aggregate(context.Context, interface{}) (Cursor, error) }
type Database ¶
type Database interface { Collection(string) Collection Client() Client }
type SingleResult ¶
type SingleResult interface {
Decode(interface{}) error
}
Click to show internal directories.
Click to hide internal directories.