mocks

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 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 Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type.

func (*Factory) Close added in v0.2.1

func (_m *Factory) Close(ctx context.Context, done chan<- interface{})

Close implements repository.Closer interface.

func (*Factory) DriverName added in v0.2.1

func (_m *Factory) DriverName() string

DriverName provides a mock repository name.

func (*Factory) New

New provides a mock function with given fields: model.

type Repository

type Repository struct {
	mock.Mock
}

Repository is the structure that implements repositories.Repository

func (*Repository) Close added in v0.2.1

func (r *Repository) Close(ctx context.Context) error

Close closes the repository connection

func (*Repository) RepositoryName

func (r *Repository) RepositoryName() string

RepositoryName returns the repository name Implements repositories.RepositoryNamer interface

Jump to

Keyboard shortcuts

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