Documentation ¶
Index ¶
- type NewRepositoryT
- type NewServiceT
- type Repository
- func (_m *Repository) GetAll(ctx context.Context) ([]productrecord.ProductRecordGet, error)
- func (_m *Repository) GetById(ctx context.Context, id int) (productrecord.ProductRecordGet, error)
- func (_m *Repository) Store(ctx context.Context, prod productrecord.ProductRecord) (productrecord.ProductRecord, error)
- type Service
- func (_m *Service) GetAll(ctx context.Context) ([]productrecord.ProductRecordGet, error)
- func (_m *Service) GetById(ctx context.Context, id int) (productrecord.ProductRecordGet, error)
- func (_m *Service) Store(ctx context.Context, prod productrecord.ProductRecord) (productrecord.ProductRecord, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NewRepositoryT ¶
type NewServiceT ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t NewRepositoryT) *Repository
NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Repository) GetAll ¶
func (_m *Repository) GetAll(ctx context.Context) ([]productrecord.ProductRecordGet, error)
GetAll provides a mock function with given fields: ctx
func (*Repository) GetById ¶
func (_m *Repository) GetById(ctx context.Context, id int) (productrecord.ProductRecordGet, error)
GetById provides a mock function with given fields: ctx, id
func (*Repository) Store ¶
func (_m *Repository) Store(ctx context.Context, prod productrecord.ProductRecord) (productrecord.ProductRecord, error)
Store provides a mock function with given fields: ctx, prod
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
func NewService(t NewServiceT) *Service
NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Service) GetAll ¶
func (_m *Service) GetAll(ctx context.Context) ([]productrecord.ProductRecordGet, error)
GetAll provides a mock function with given fields: ctx
func (*Service) GetById ¶
func (_m *Service) GetById(ctx context.Context, id int) (productrecord.ProductRecordGet, error)
GetById provides a mock function with given fields: ctx, id
func (*Service) Store ¶
func (_m *Service) Store(ctx context.Context, prod productrecord.ProductRecord) (productrecord.ProductRecord, error)
Store provides a mock function with given fields: ctx, prod