mocks

package
v0.0.0-...-e0c2b11 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 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 Driver

type Driver struct {
	mock.Mock
}

Driver is an autogenerated mock type for the Driver type

func (*Driver) Connect

func (_m *Driver) Connect(ctx context.Context) error

Connect provides a mock function with given fields: ctx

func (*Driver) Disconnect

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

Disconnect provides a mock function with given fields: ctx

func (*Driver) GetDB

func (_m *Driver) GetDB() *mongo.Database

GetDB provides a mock function with given fields:

func (*Driver) SetClient

func (_m *Driver) SetClient(cfg config.DatabaseConfig) error

SetClient provides a mock function with given fields: cfg

func (*Driver) SetClientWithContext

func (_m *Driver) SetClientWithContext(ctx context.Context, cfg config.DatabaseConfig) error

SetClientWithContext provides a mock function with given fields: ctx, cfg

Jump to

Keyboard shortcuts

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