Documentation ¶
Index ¶
- type DeviceService
- func (_m *DeviceService) Create(ctx context.Context, w *domain.DeviceRequest) error
- func (_m *DeviceService) Delete(ctx context.Context, id string) error
- func (_m *DeviceService) GetAll(ctx context.Context, page int, limit int) ([]domain.Device, error)
- func (_m *DeviceService) GetByID(ctx context.Context, id string) (*domain.Device, error)
- func (_m *DeviceService) Update(ctx context.Context, w *domain.Device) error
- type SensorService
- func (_m *SensorService) Create(ctx context.Context, w *domain.SensorRequest) error
- func (_m *SensorService) Delete(ctx context.Context, id string) error
- func (_m *SensorService) GetAll(ctx context.Context, page int, limit int) ([]domain.Sensor, error)
- func (_m *SensorService) GetByID(ctx context.Context, id string) (*domain.Sensor, error)
- func (_m *SensorService) Update(ctx context.Context, w *domain.Sensor) error
- type WasteWaterServices
- func (_m *WasteWaterServices) Create(ctx context.Context, w *domain.WastewaterDataRequest) error
- func (_m *WasteWaterServices) Delete(ctx context.Context, id string) error
- func (_m *WasteWaterServices) GetAll(ctx context.Context, page int, limit int) ([]domain.WasteWaterData, error)
- func (_m *WasteWaterServices) GetByID(ctx context.Context, id string) (*domain.WasteWaterData, error)
- func (_m *WasteWaterServices) Update(ctx context.Context, w *domain.WasteWaterData) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceService ¶
DeviceService is an autogenerated mock type for the DeviceService type
func NewDeviceService ¶
func NewDeviceService(t interface { mock.TestingT Cleanup(func()) }) *DeviceService
NewDeviceService creates a new instance of DeviceService. 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 (*DeviceService) Create ¶
func (_m *DeviceService) Create(ctx context.Context, w *domain.DeviceRequest) error
Create provides a mock function with given fields: ctx, w
func (*DeviceService) Delete ¶
func (_m *DeviceService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
type SensorService ¶
SensorService is an autogenerated mock type for the SensorService type
func NewSensorService ¶
func NewSensorService(t interface { mock.TestingT Cleanup(func()) }) *SensorService
NewSensorService creates a new instance of SensorService. 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 (*SensorService) Create ¶
func (_m *SensorService) Create(ctx context.Context, w *domain.SensorRequest) error
Create provides a mock function with given fields: ctx, w
func (*SensorService) Delete ¶
func (_m *SensorService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
type WasteWaterServices ¶
WasteWaterServices is an autogenerated mock type for the WasteWaterServices type
func NewWasteWaterServices ¶
func NewWasteWaterServices(t interface { mock.TestingT Cleanup(func()) }) *WasteWaterServices
NewWasteWaterServices creates a new instance of WasteWaterServices. 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 (*WasteWaterServices) Create ¶
func (_m *WasteWaterServices) Create(ctx context.Context, w *domain.WastewaterDataRequest) error
Create provides a mock function with given fields: ctx, w
func (*WasteWaterServices) Delete ¶
func (_m *WasteWaterServices) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*WasteWaterServices) GetAll ¶
func (_m *WasteWaterServices) GetAll(ctx context.Context, page int, limit int) ([]domain.WasteWaterData, error)
GetAll provides a mock function with given fields: ctx, page, limit
func (*WasteWaterServices) GetByID ¶
func (_m *WasteWaterServices) GetByID(ctx context.Context, id string) (*domain.WasteWaterData, error)
GetByID provides a mock function with given fields: ctx, id
func (*WasteWaterServices) Update ¶
func (_m *WasteWaterServices) Update(ctx context.Context, w *domain.WasteWaterData) error
Update provides a mock function with given fields: ctx, w