mocks

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 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.1.4

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

Close implements repository.Closer interface

func (*Factory) New

New provides a mock function with given fields: model

func (*Factory) RepositoryName

func (_m *Factory) RepositoryName() string

RepositoryName provides a mock function with given fields:

type Repository

type Repository struct {
	mock.Mock
}

Repository is the structure that implements repositories.Repository

func (*Repository) Close added in v0.1.4

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