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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) ApplyURI

func (_m *Client) ApplyURI(uri string)

ApplyURI provides a mock function with given fields: uri

func (*Client) Connect

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

Connect provides a mock function with given fields: ctx

func (*Client) Database

func (_m *Client) Database(name string, opts ...*options.DatabaseOptions) *mongo.Database

Database provides a mock function with given fields: name, opts

func (*Client) Disconnect

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

Disconnect provides a mock function with given fields: ctx

func (*Client) NewClient

func (_m *Client) NewClient() error

NewClient provides a mock function with given fields:

func (*Client) Ping

func (_m *Client) Ping(ctx context.Context, rp *readpref.ReadPref) error

Ping provides a mock function with given fields: ctx, rp

Jump to

Keyboard shortcuts

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