Documentation ¶
Index ¶
- type Cache
- type Database
- type Repository
- func (_m *Repository) DeleteOne(ctx context.Context, filter primitive.M, opts ...*options.DeleteOptions) error
- func (_m *Repository) FindAll(ctx context.Context, filter primitive.M, results []dataful.Model, ...) error
- func (_m *Repository) FindOne(ctx context.Context, filter primitive.M, document dataful.Model, ...) error
- func (_m *Repository) InsertOne(ctx context.Context, document dataful.Model, opts ...*options.InsertOneOptions) error
- func (_m *Repository) ReplaceOne(ctx context.Context, filter primitive.M, replacement dataful.Model, ...) error
- type TwitchAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
Cache is an autogenerated mock type for the Cache type
type Database ¶
Database is an autogenerated mock type for the Database type
func (*Database) Disconnect ¶
Disconnect provides a mock function with given fields: ctx
func (*Database) Repository ¶
func (_m *Database) Repository(db dataful.DBName, col dataful.Collection) dataful.Repository
Repository provides a mock function with given fields: db, col
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) DeleteOne ¶
func (_m *Repository) DeleteOne(ctx context.Context, filter primitive.M, opts ...*options.DeleteOptions) error
DeleteOne provides a mock function with given fields: ctx, filter, opts
func (*Repository) FindAll ¶
func (_m *Repository) FindAll(ctx context.Context, filter primitive.M, results []dataful.Model, opts ...*options.FindOptions) error
FindAll provides a mock function with given fields: ctx, filter, results, opts
func (*Repository) FindOne ¶
func (_m *Repository) FindOne(ctx context.Context, filter primitive.M, document dataful.Model, opts ...*options.FindOneOptions) error
FindOne provides a mock function with given fields: ctx, filter, document, opts
func (*Repository) InsertOne ¶
func (_m *Repository) InsertOne(ctx context.Context, document dataful.Model, opts ...*options.InsertOneOptions) error
InsertOne provides a mock function with given fields: ctx, document, opts
func (*Repository) ReplaceOne ¶
func (_m *Repository) ReplaceOne(ctx context.Context, filter primitive.M, replacement dataful.Model, opts ...*options.ReplaceOptions) error
ReplaceOne provides a mock function with given fields: ctx, filter, replacement, opts