Documentation
¶
Overview ¶
Package mocks contains mocked repository and factory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
Factory is an autogenerated mock type for the Factory type.
func (*Factory) DriverName ¶ added in v0.2.1
DriverName provides a mock repository name.
func (*Factory) New ¶
func (_m *Factory) New(structer repository.Controller, model *mapping.ModelStruct) (repository.Repository, error)
New provides a mock function with given fields: model.
type Repository ¶
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
Click to show internal directories.
Click to hide internal directories.