Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { Insert(ctx context.Context, collection string, doc interface{}) (interface{}, error) Find(ctx context.Context, collection string, filter map[string]interface{}) (*mongo.Cursor, error) Update(ctx context.Context, collection string, filter map[string]interface{}, update bson.D) (int64, int64, error) Delete(ctx context.Context, collection string, filter map[string]interface{}) (int64, error) }
DB is the core database interface
Click to show internal directories.
Click to hide internal directories.