mocks

package
v0.0.0-...-70c62f1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func (*Cache) Get

func (_m *Cache) Get(ctx context.Context, key string, document interface{}) error

Get provides a mock function with given fields: ctx, key, document

func (*Cache) Set

func (_m *Cache) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error

Set provides a mock function with given fields: ctx, key, value, expiration

type Database

type Database struct {
	mock.Mock
}

Database is an autogenerated mock type for the Database type

func (*Database) Disconnect

func (_m *Database) Disconnect(ctx context.Context) error

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

type Repository struct {
	mock.Mock
}

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

type TwitchAPI

type TwitchAPI struct {
	mock.Mock
}

TwitchAPI is an autogenerated mock type for the TwitchAPI type

func (*TwitchAPI) NewAPI

func (_m *TwitchAPI) NewAPI(options *helix.Options) (*helix.Client, error)

NewAPI provides a mock function with given fields: options

Jump to

Keyboard shortcuts

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