Documentation ¶
Index ¶
- type DeviceRepositoryInterface
- func (_m *DeviceRepositoryInterface) Create(ctx context.Context, w *domain.DeviceRequest) error
- func (_m *DeviceRepositoryInterface) Delete(ctx context.Context, id string) error
- func (_m *DeviceRepositoryInterface) GetAll(ctx context.Context, page int, limit int) ([]domain.Device, error)
- func (_m *DeviceRepositoryInterface) GetByID(ctx context.Context, id string) (*domain.Device, error)
- func (_m *DeviceRepositoryInterface) Update(ctx context.Context, w *domain.Device) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceRepositoryInterface ¶
DeviceRepositoryInterface is an autogenerated mock type for the DeviceRepositoryInterface type
func NewDeviceRepositoryInterface ¶
func NewDeviceRepositoryInterface(t interface { mock.TestingT Cleanup(func()) }) *DeviceRepositoryInterface
NewDeviceRepositoryInterface creates a new instance of DeviceRepositoryInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DeviceRepositoryInterface) Create ¶
func (_m *DeviceRepositoryInterface) Create(ctx context.Context, w *domain.DeviceRequest) error
Create provides a mock function with given fields: ctx, w
func (*DeviceRepositoryInterface) Delete ¶
func (_m *DeviceRepositoryInterface) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*DeviceRepositoryInterface) GetAll ¶
func (_m *DeviceRepositoryInterface) GetAll(ctx context.Context, page int, limit int) ([]domain.Device, error)
GetAll provides a mock function with given fields: ctx, page, limit
Click to show internal directories.
Click to hide internal directories.