repository

package
v0.0.0-...-82f818e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	mock.Mock
}

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

type Connection struct {
	mock.Mock
}

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

type Repository struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL