Documentation
¶
Index ¶
- type Collection
- func (_m *Collection) Drop() error
- func (_m *Collection) Find(filter interface{}, dest interface{}) error
- func (_m *Collection) FindByID(id primitive.ObjectID, dest interface{}) error
- func (_m *Collection) FindOne(filter interface{}, dest interface{}) error
- func (_m *Collection) InsertMany(data []interface{}) error
- func (_m *Collection) InsertOne(data interface{}) (primitive.ObjectID, error)
- func (_m *Collection) UpdateOne(filter interface{}, update map[string]interface{}) error
- type Connection
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
Collection is an autogenerated mock type for the Collection type
func (*Collection) Drop ¶
func (_m *Collection) Drop() error
Drop provides a mock function with given fields:
func (*Collection) Find ¶
func (_m *Collection) Find(filter interface{}, dest interface{}) error
Find provides a mock function with given fields: filter, dest
func (*Collection) FindByID ¶
func (_m *Collection) FindByID(id primitive.ObjectID, dest interface{}) error
FindByID provides a mock function with given fields: id, dest
func (*Collection) FindOne ¶
func (_m *Collection) FindOne(filter interface{}, dest interface{}) error
FindOne provides a mock function with given fields: filter, dest
func (*Collection) InsertMany ¶
func (_m *Collection) InsertMany(data []interface{}) error
InsertMany provides a mock function with given fields: data
func (*Collection) InsertOne ¶
func (_m *Collection) InsertOne(data interface{}) (primitive.ObjectID, error)
InsertOne provides a mock function with given fields: data
func (*Collection) UpdateOne ¶
func (_m *Collection) UpdateOne(filter interface{}, update map[string]interface{}) error
UpdateOne provides a mock function with given fields: filter, update
type Connection ¶
Connection is an autogenerated mock type for the Connection type
func (*Connection) SetupIndexes ¶
func (_m *Connection) SetupIndexes()
SetupIndexes provides a mock function with given fields:
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) Col ¶
func (_m *Repository) Col(collection string) repository.Collection
Col provides a mock function with given fields: collection
func (*Repository) DatabaseDrop ¶
func (_m *Repository) DatabaseDrop(ctx context.Context) error
DatabaseDrop provides a mock function with given fields: ctx