Documentation
¶
Index ¶
- type MockAuthService
- func (_m *MockAuthService) ClientTokenCallback(ctx context.Context, loginCallback *entities.LoginCallback) (*entities.ClientToken, error)
- func (_m *MockAuthService) EXPECT() *MockAuthService_Expecter
- func (_m *MockAuthService) GetAll(ctx context.Context) ([]*entities.User, error)
- func (_m *MockAuthService) GetAllByRole(ctx context.Context, role entities.UserRole) ([]*entities.User, error)
- func (_m *MockAuthService) GetByIDs(ctx context.Context, ids []string) ([]*entities.User, error)
- func (_m *MockAuthService) LoginRequest(ctx context.Context, loginRequest *entities.LoginRequest) *entities.LoginResp
- func (_m *MockAuthService) LogoutRequest(ctx context.Context, logoutRequest *entities.Logout) error
- func (_m *MockAuthService) Ready() bool
- func (_m *MockAuthService) RefreshToken(ctx context.Context, refreshToken string) (*entities.ClientToken, error)
- func (_m *MockAuthService) Register(ctx context.Context, user *entities.RegisterUser) (*entities.User, error)
- func (_m *MockAuthService) RetrospectToken(ctx context.Context, token string) (*entities.IntroSpectTokenResult, error)
- type MockAuthService_ClientTokenCallback_Call
- func (_c *MockAuthService_ClientTokenCallback_Call) Return(_a0 *entities.ClientToken, _a1 error) *MockAuthService_ClientTokenCallback_Call
- func (_c *MockAuthService_ClientTokenCallback_Call) Run(run func(ctx context.Context, loginCallback *entities.LoginCallback)) *MockAuthService_ClientTokenCallback_Call
- func (_c *MockAuthService_ClientTokenCallback_Call) RunAndReturn(...) *MockAuthService_ClientTokenCallback_Call
- type MockAuthService_Expecter
- func (_e *MockAuthService_Expecter) ClientTokenCallback(ctx interface{}, loginCallback interface{}) *MockAuthService_ClientTokenCallback_Call
- func (_e *MockAuthService_Expecter) GetAll(ctx interface{}) *MockAuthService_GetAll_Call
- func (_e *MockAuthService_Expecter) GetAllByRole(ctx interface{}, role interface{}) *MockAuthService_GetAllByRole_Call
- func (_e *MockAuthService_Expecter) GetByIDs(ctx interface{}, ids interface{}) *MockAuthService_GetByIDs_Call
- func (_e *MockAuthService_Expecter) LoginRequest(ctx interface{}, loginRequest interface{}) *MockAuthService_LoginRequest_Call
- func (_e *MockAuthService_Expecter) LogoutRequest(ctx interface{}, logoutRequest interface{}) *MockAuthService_LogoutRequest_Call
- func (_e *MockAuthService_Expecter) Ready() *MockAuthService_Ready_Call
- func (_e *MockAuthService_Expecter) RefreshToken(ctx interface{}, refreshToken interface{}) *MockAuthService_RefreshToken_Call
- func (_e *MockAuthService_Expecter) Register(ctx interface{}, user interface{}) *MockAuthService_Register_Call
- func (_e *MockAuthService_Expecter) RetrospectToken(ctx interface{}, token interface{}) *MockAuthService_RetrospectToken_Call
- type MockAuthService_GetAllByRole_Call
- func (_c *MockAuthService_GetAllByRole_Call) Return(_a0 []*entities.User, _a1 error) *MockAuthService_GetAllByRole_Call
- func (_c *MockAuthService_GetAllByRole_Call) Run(run func(ctx context.Context, role entities.UserRole)) *MockAuthService_GetAllByRole_Call
- func (_c *MockAuthService_GetAllByRole_Call) RunAndReturn(run func(context.Context, entities.UserRole) ([]*entities.User, error)) *MockAuthService_GetAllByRole_Call
- type MockAuthService_GetAll_Call
- func (_c *MockAuthService_GetAll_Call) Return(_a0 []*entities.User, _a1 error) *MockAuthService_GetAll_Call
- func (_c *MockAuthService_GetAll_Call) Run(run func(ctx context.Context)) *MockAuthService_GetAll_Call
- func (_c *MockAuthService_GetAll_Call) RunAndReturn(run func(context.Context) ([]*entities.User, error)) *MockAuthService_GetAll_Call
- type MockAuthService_GetByIDs_Call
- func (_c *MockAuthService_GetByIDs_Call) Return(_a0 []*entities.User, _a1 error) *MockAuthService_GetByIDs_Call
- func (_c *MockAuthService_GetByIDs_Call) Run(run func(ctx context.Context, ids []string)) *MockAuthService_GetByIDs_Call
- func (_c *MockAuthService_GetByIDs_Call) RunAndReturn(run func(context.Context, []string) ([]*entities.User, error)) *MockAuthService_GetByIDs_Call
- type MockAuthService_LoginRequest_Call
- func (_c *MockAuthService_LoginRequest_Call) Return(_a0 *entities.LoginResp) *MockAuthService_LoginRequest_Call
- func (_c *MockAuthService_LoginRequest_Call) Run(run func(ctx context.Context, loginRequest *entities.LoginRequest)) *MockAuthService_LoginRequest_Call
- func (_c *MockAuthService_LoginRequest_Call) RunAndReturn(run func(context.Context, *entities.LoginRequest) *entities.LoginResp) *MockAuthService_LoginRequest_Call
- type MockAuthService_LogoutRequest_Call
- func (_c *MockAuthService_LogoutRequest_Call) Return(_a0 error) *MockAuthService_LogoutRequest_Call
- func (_c *MockAuthService_LogoutRequest_Call) Run(run func(ctx context.Context, logoutRequest *entities.Logout)) *MockAuthService_LogoutRequest_Call
- func (_c *MockAuthService_LogoutRequest_Call) RunAndReturn(run func(context.Context, *entities.Logout) error) *MockAuthService_LogoutRequest_Call
- type MockAuthService_Ready_Call
- type MockAuthService_RefreshToken_Call
- func (_c *MockAuthService_RefreshToken_Call) Return(_a0 *entities.ClientToken, _a1 error) *MockAuthService_RefreshToken_Call
- func (_c *MockAuthService_RefreshToken_Call) Run(run func(ctx context.Context, refreshToken string)) *MockAuthService_RefreshToken_Call
- func (_c *MockAuthService_RefreshToken_Call) RunAndReturn(run func(context.Context, string) (*entities.ClientToken, error)) *MockAuthService_RefreshToken_Call
- type MockAuthService_Register_Call
- func (_c *MockAuthService_Register_Call) Return(_a0 *entities.User, _a1 error) *MockAuthService_Register_Call
- func (_c *MockAuthService_Register_Call) Run(run func(ctx context.Context, user *entities.RegisterUser)) *MockAuthService_Register_Call
- func (_c *MockAuthService_Register_Call) RunAndReturn(run func(context.Context, *entities.RegisterUser) (*entities.User, error)) *MockAuthService_Register_Call
- type MockAuthService_RetrospectToken_Call
- func (_c *MockAuthService_RetrospectToken_Call) Return(_a0 *entities.IntroSpectTokenResult, _a1 error) *MockAuthService_RetrospectToken_Call
- func (_c *MockAuthService_RetrospectToken_Call) Run(run func(ctx context.Context, token string)) *MockAuthService_RetrospectToken_Call
- func (_c *MockAuthService_RetrospectToken_Call) RunAndReturn(run func(context.Context, string) (*entities.IntroSpectTokenResult, error)) *MockAuthService_RetrospectToken_Call
- type MockEvaluationService
- type MockEvaluationService_Expecter
- type MockEvaluationService_GetEvaluation_Call
- func (_c *MockEvaluationService_GetEvaluation_Call) Return(_a0 *entities.Evaluation, _a1 error) *MockEvaluationService_GetEvaluation_Call
- func (_c *MockEvaluationService_GetEvaluation_Call) Run(run func(ctx context.Context)) *MockEvaluationService_GetEvaluation_Call
- func (_c *MockEvaluationService_GetEvaluation_Call) RunAndReturn(run func(context.Context) (*entities.Evaluation, error)) *MockEvaluationService_GetEvaluation_Call
- type MockEvaluationService_Ready_Call
- type MockInfoService
- type MockInfoService_Expecter
- type MockInfoService_GetAppInfoResponse_Call
- func (_c *MockInfoService_GetAppInfoResponse_Call) Return(_a0 *entities.App, _a1 error) *MockInfoService_GetAppInfoResponse_Call
- func (_c *MockInfoService_GetAppInfoResponse_Call) Run(run func(_a0 context.Context)) *MockInfoService_GetAppInfoResponse_Call
- func (_c *MockInfoService_GetAppInfoResponse_Call) RunAndReturn(run func(context.Context) (*entities.App, error)) *MockInfoService_GetAppInfoResponse_Call
- type MockInfoService_GetAppInfo_Call
- func (_c *MockInfoService_GetAppInfo_Call) Return(_a0 *entities.App, _a1 error) *MockInfoService_GetAppInfo_Call
- func (_c *MockInfoService_GetAppInfo_Call) Run(run func(_a0 context.Context)) *MockInfoService_GetAppInfo_Call
- func (_c *MockInfoService_GetAppInfo_Call) RunAndReturn(run func(context.Context) (*entities.App, error)) *MockInfoService_GetAppInfo_Call
- type MockInfoService_Ready_Call
- type MockPluginService
- func (_m *MockPluginService) EXPECT() *MockPluginService_Expecter
- func (_m *MockPluginService) Get(ctx context.Context, slug string) (entities.Plugin, error)
- func (_m *MockPluginService) GetAll(ctx context.Context) ([]entities.Plugin, []time.Time)
- func (_m *MockPluginService) HeartBeat(ctx context.Context, slug string) error
- func (_m *MockPluginService) Ready() bool
- func (_m *MockPluginService) RefreshToken(ctx context.Context, auth *entities.AuthPlugin, slug string) (*entities.ClientToken, error)
- func (_m *MockPluginService) Register(ctx context.Context, plugin *entities.Plugin) (*entities.ClientToken, error)
- func (_m *MockPluginService) StartCleanup(ctx context.Context)
- func (_m *MockPluginService) Unregister(ctx context.Context, slug string)
- type MockPluginService_Expecter
- func (_e *MockPluginService_Expecter) Get(ctx interface{}, slug interface{}) *MockPluginService_Get_Call
- func (_e *MockPluginService_Expecter) GetAll(ctx interface{}) *MockPluginService_GetAll_Call
- func (_e *MockPluginService_Expecter) HeartBeat(ctx interface{}, slug interface{}) *MockPluginService_HeartBeat_Call
- func (_e *MockPluginService_Expecter) Ready() *MockPluginService_Ready_Call
- func (_e *MockPluginService_Expecter) RefreshToken(ctx interface{}, auth interface{}, slug interface{}) *MockPluginService_RefreshToken_Call
- func (_e *MockPluginService_Expecter) Register(ctx interface{}, plugin interface{}) *MockPluginService_Register_Call
- func (_e *MockPluginService_Expecter) StartCleanup(ctx interface{}) *MockPluginService_StartCleanup_Call
- func (_e *MockPluginService_Expecter) Unregister(ctx interface{}, slug interface{}) *MockPluginService_Unregister_Call
- type MockPluginService_GetAll_Call
- func (_c *MockPluginService_GetAll_Call) Return(_a0 []entities.Plugin, _a1 []time.Time) *MockPluginService_GetAll_Call
- func (_c *MockPluginService_GetAll_Call) Run(run func(ctx context.Context)) *MockPluginService_GetAll_Call
- func (_c *MockPluginService_GetAll_Call) RunAndReturn(run func(context.Context) ([]entities.Plugin, []time.Time)) *MockPluginService_GetAll_Call
- type MockPluginService_Get_Call
- func (_c *MockPluginService_Get_Call) Return(_a0 entities.Plugin, _a1 error) *MockPluginService_Get_Call
- func (_c *MockPluginService_Get_Call) Run(run func(ctx context.Context, slug string)) *MockPluginService_Get_Call
- func (_c *MockPluginService_Get_Call) RunAndReturn(run func(context.Context, string) (entities.Plugin, error)) *MockPluginService_Get_Call
- type MockPluginService_HeartBeat_Call
- func (_c *MockPluginService_HeartBeat_Call) Return(_a0 error) *MockPluginService_HeartBeat_Call
- func (_c *MockPluginService_HeartBeat_Call) Run(run func(ctx context.Context, slug string)) *MockPluginService_HeartBeat_Call
- func (_c *MockPluginService_HeartBeat_Call) RunAndReturn(run func(context.Context, string) error) *MockPluginService_HeartBeat_Call
- type MockPluginService_Ready_Call
- type MockPluginService_RefreshToken_Call
- func (_c *MockPluginService_RefreshToken_Call) Return(_a0 *entities.ClientToken, _a1 error) *MockPluginService_RefreshToken_Call
- func (_c *MockPluginService_RefreshToken_Call) Run(run func(ctx context.Context, auth *entities.AuthPlugin, slug string)) *MockPluginService_RefreshToken_Call
- func (_c *MockPluginService_RefreshToken_Call) RunAndReturn(...) *MockPluginService_RefreshToken_Call
- type MockPluginService_Register_Call
- func (_c *MockPluginService_Register_Call) Return(_a0 *entities.ClientToken, _a1 error) *MockPluginService_Register_Call
- func (_c *MockPluginService_Register_Call) Run(run func(ctx context.Context, plugin *entities.Plugin)) *MockPluginService_Register_Call
- func (_c *MockPluginService_Register_Call) RunAndReturn(run func(context.Context, *entities.Plugin) (*entities.ClientToken, error)) *MockPluginService_Register_Call
- type MockPluginService_StartCleanup_Call
- func (_c *MockPluginService_StartCleanup_Call) Return() *MockPluginService_StartCleanup_Call
- func (_c *MockPluginService_StartCleanup_Call) Run(run func(ctx context.Context)) *MockPluginService_StartCleanup_Call
- func (_c *MockPluginService_StartCleanup_Call) RunAndReturn(run func(context.Context)) *MockPluginService_StartCleanup_Call
- type MockPluginService_Unregister_Call
- func (_c *MockPluginService_Unregister_Call) Return() *MockPluginService_Unregister_Call
- func (_c *MockPluginService_Unregister_Call) Run(run func(ctx context.Context, slug string)) *MockPluginService_Unregister_Call
- func (_c *MockPluginService_Unregister_Call) RunAndReturn(run func(context.Context, string)) *MockPluginService_Unregister_Call
- type MockRegionService
- type MockRegionService_Expecter
- type MockRegionService_GetAll_Call
- func (_c *MockRegionService_GetAll_Call) Return(_a0 []*entities.Region, _a1 int64, _a2 error) *MockRegionService_GetAll_Call
- func (_c *MockRegionService_GetAll_Call) Run(run func(ctx context.Context)) *MockRegionService_GetAll_Call
- func (_c *MockRegionService_GetAll_Call) RunAndReturn(run func(context.Context) ([]*entities.Region, int64, error)) *MockRegionService_GetAll_Call
- type MockRegionService_GetByID_Call
- func (_c *MockRegionService_GetByID_Call) Return(_a0 *entities.Region, _a1 error) *MockRegionService_GetByID_Call
- func (_c *MockRegionService_GetByID_Call) Run(run func(ctx context.Context, id int32)) *MockRegionService_GetByID_Call
- func (_c *MockRegionService_GetByID_Call) RunAndReturn(run func(context.Context, int32) (*entities.Region, error)) *MockRegionService_GetByID_Call
- type MockRegionService_Ready_Call
- type MockSensorService
- func (_m *MockSensorService) Create(ctx context.Context, createData *entities.SensorCreate) (*entities.Sensor, error)
- func (_m *MockSensorService) Delete(ctx context.Context, id string) error
- func (_m *MockSensorService) EXPECT() *MockSensorService_Expecter
- func (_m *MockSensorService) GetAll(ctx context.Context, query entities.Query) ([]*entities.Sensor, int64, error)
- func (_m *MockSensorService) GetAllDataByID(ctx context.Context, id string) ([]*entities.SensorData, error)
- func (_m *MockSensorService) GetByID(ctx context.Context, id string) (*entities.Sensor, error)
- func (_m *MockSensorService) HandleMessage(ctx context.Context, payload *entities.MqttPayload) (*entities.SensorData, error)
- func (_m *MockSensorService) MapSensorToTree(ctx context.Context, sen *entities.Sensor) error
- func (_m *MockSensorService) Ready() bool
- func (_m *MockSensorService) Update(ctx context.Context, id string, updateData *entities.SensorUpdate) (*entities.Sensor, error)
- func (_m *MockSensorService) UpdateStatuses(ctx context.Context) error
- type MockSensorService_Create_Call
- func (_c *MockSensorService_Create_Call) Return(_a0 *entities.Sensor, _a1 error) *MockSensorService_Create_Call
- func (_c *MockSensorService_Create_Call) Run(run func(ctx context.Context, createData *entities.SensorCreate)) *MockSensorService_Create_Call
- func (_c *MockSensorService_Create_Call) RunAndReturn(run func(context.Context, *entities.SensorCreate) (*entities.Sensor, error)) *MockSensorService_Create_Call
- type MockSensorService_Delete_Call
- func (_c *MockSensorService_Delete_Call) Return(_a0 error) *MockSensorService_Delete_Call
- func (_c *MockSensorService_Delete_Call) Run(run func(ctx context.Context, id string)) *MockSensorService_Delete_Call
- func (_c *MockSensorService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *MockSensorService_Delete_Call
- type MockSensorService_Expecter
- func (_e *MockSensorService_Expecter) Create(ctx interface{}, createData interface{}) *MockSensorService_Create_Call
- func (_e *MockSensorService_Expecter) Delete(ctx interface{}, id interface{}) *MockSensorService_Delete_Call
- func (_e *MockSensorService_Expecter) GetAll(ctx interface{}, query interface{}) *MockSensorService_GetAll_Call
- func (_e *MockSensorService_Expecter) GetAllDataByID(ctx interface{}, id interface{}) *MockSensorService_GetAllDataByID_Call
- func (_e *MockSensorService_Expecter) GetByID(ctx interface{}, id interface{}) *MockSensorService_GetByID_Call
- func (_e *MockSensorService_Expecter) HandleMessage(ctx interface{}, payload interface{}) *MockSensorService_HandleMessage_Call
- func (_e *MockSensorService_Expecter) MapSensorToTree(ctx interface{}, sen interface{}) *MockSensorService_MapSensorToTree_Call
- func (_e *MockSensorService_Expecter) Ready() *MockSensorService_Ready_Call
- func (_e *MockSensorService_Expecter) Update(ctx interface{}, id interface{}, updateData interface{}) *MockSensorService_Update_Call
- func (_e *MockSensorService_Expecter) UpdateStatuses(ctx interface{}) *MockSensorService_UpdateStatuses_Call
- type MockSensorService_GetAllDataByID_Call
- func (_c *MockSensorService_GetAllDataByID_Call) Return(_a0 []*entities.SensorData, _a1 error) *MockSensorService_GetAllDataByID_Call
- func (_c *MockSensorService_GetAllDataByID_Call) Run(run func(ctx context.Context, id string)) *MockSensorService_GetAllDataByID_Call
- func (_c *MockSensorService_GetAllDataByID_Call) RunAndReturn(run func(context.Context, string) ([]*entities.SensorData, error)) *MockSensorService_GetAllDataByID_Call
- type MockSensorService_GetAll_Call
- func (_c *MockSensorService_GetAll_Call) Return(_a0 []*entities.Sensor, _a1 int64, _a2 error) *MockSensorService_GetAll_Call
- func (_c *MockSensorService_GetAll_Call) Run(run func(ctx context.Context, query entities.Query)) *MockSensorService_GetAll_Call
- func (_c *MockSensorService_GetAll_Call) RunAndReturn(run func(context.Context, entities.Query) ([]*entities.Sensor, int64, error)) *MockSensorService_GetAll_Call
- type MockSensorService_GetByID_Call
- func (_c *MockSensorService_GetByID_Call) Return(_a0 *entities.Sensor, _a1 error) *MockSensorService_GetByID_Call
- func (_c *MockSensorService_GetByID_Call) Run(run func(ctx context.Context, id string)) *MockSensorService_GetByID_Call
- func (_c *MockSensorService_GetByID_Call) RunAndReturn(run func(context.Context, string) (*entities.Sensor, error)) *MockSensorService_GetByID_Call
- type MockSensorService_HandleMessage_Call
- func (_c *MockSensorService_HandleMessage_Call) Return(_a0 *entities.SensorData, _a1 error) *MockSensorService_HandleMessage_Call
- func (_c *MockSensorService_HandleMessage_Call) Run(run func(ctx context.Context, payload *entities.MqttPayload)) *MockSensorService_HandleMessage_Call
- func (_c *MockSensorService_HandleMessage_Call) RunAndReturn(run func(context.Context, *entities.MqttPayload) (*entities.SensorData, error)) *MockSensorService_HandleMessage_Call
- type MockSensorService_MapSensorToTree_Call
- func (_c *MockSensorService_MapSensorToTree_Call) Return(_a0 error) *MockSensorService_MapSensorToTree_Call
- func (_c *MockSensorService_MapSensorToTree_Call) Run(run func(ctx context.Context, sen *entities.Sensor)) *MockSensorService_MapSensorToTree_Call
- func (_c *MockSensorService_MapSensorToTree_Call) RunAndReturn(run func(context.Context, *entities.Sensor) error) *MockSensorService_MapSensorToTree_Call
- type MockSensorService_Ready_Call
- type MockSensorService_UpdateStatuses_Call
- func (_c *MockSensorService_UpdateStatuses_Call) Return(_a0 error) *MockSensorService_UpdateStatuses_Call
- func (_c *MockSensorService_UpdateStatuses_Call) Run(run func(ctx context.Context)) *MockSensorService_UpdateStatuses_Call
- func (_c *MockSensorService_UpdateStatuses_Call) RunAndReturn(run func(context.Context) error) *MockSensorService_UpdateStatuses_Call
- type MockSensorService_Update_Call
- func (_c *MockSensorService_Update_Call) Return(_a0 *entities.Sensor, _a1 error) *MockSensorService_Update_Call
- func (_c *MockSensorService_Update_Call) Run(run func(ctx context.Context, id string, updateData *entities.SensorUpdate)) *MockSensorService_Update_Call
- func (_c *MockSensorService_Update_Call) RunAndReturn(...) *MockSensorService_Update_Call
- type MockService
- type MockService_Expecter
- type MockService_Ready_Call
- type MockServicesInterface
- type MockServicesInterface_AllServicesReady_Call
- func (_c *MockServicesInterface_AllServicesReady_Call) Return(_a0 bool) *MockServicesInterface_AllServicesReady_Call
- func (_c *MockServicesInterface_AllServicesReady_Call) Run(run func()) *MockServicesInterface_AllServicesReady_Call
- func (_c *MockServicesInterface_AllServicesReady_Call) RunAndReturn(run func() bool) *MockServicesInterface_AllServicesReady_Call
- type MockServicesInterface_Expecter
- type MockTreeClusterService
- func (_m *MockTreeClusterService) Create(ctx context.Context, createData *entities.TreeClusterCreate) (*entities.TreeCluster, error)
- func (_m *MockTreeClusterService) Delete(ctx context.Context, id int32) error
- func (_m *MockTreeClusterService) EXPECT() *MockTreeClusterService_Expecter
- func (_m *MockTreeClusterService) GetAll(ctx context.Context, query entities.TreeClusterQuery) ([]*entities.TreeCluster, int64, error)
- func (_m *MockTreeClusterService) GetByID(ctx context.Context, id int32) (*entities.TreeCluster, error)
- func (_m *MockTreeClusterService) HandleCreateTree(_a0 context.Context, _a1 *entities.EventCreateTree) error
- func (_m *MockTreeClusterService) HandleDeleteTree(_a0 context.Context, _a1 *entities.EventDeleteTree) error
- func (_m *MockTreeClusterService) HandleNewSensorData(_a0 context.Context, _a1 *entities.EventNewSensorData) error
- func (_m *MockTreeClusterService) HandleUpdateTree(_a0 context.Context, _a1 *entities.EventUpdateTree) error
- func (_m *MockTreeClusterService) HandleUpdateWateringPlan(_a0 context.Context, _a1 *entities.EventUpdateWateringPlan) error
- func (_m *MockTreeClusterService) Ready() bool
- func (_m *MockTreeClusterService) Update(ctx context.Context, id int32, updateData *entities.TreeClusterUpdate) (*entities.TreeCluster, error)
- func (_m *MockTreeClusterService) UpdateWateringStatuses(ctx context.Context) error
- type MockTreeClusterService_Create_Call
- func (_c *MockTreeClusterService_Create_Call) Return(_a0 *entities.TreeCluster, _a1 error) *MockTreeClusterService_Create_Call
- func (_c *MockTreeClusterService_Create_Call) Run(run func(ctx context.Context, createData *entities.TreeClusterCreate)) *MockTreeClusterService_Create_Call
- func (_c *MockTreeClusterService_Create_Call) RunAndReturn(...) *MockTreeClusterService_Create_Call
- type MockTreeClusterService_Delete_Call
- func (_c *MockTreeClusterService_Delete_Call) Return(_a0 error) *MockTreeClusterService_Delete_Call
- func (_c *MockTreeClusterService_Delete_Call) Run(run func(ctx context.Context, id int32)) *MockTreeClusterService_Delete_Call
- func (_c *MockTreeClusterService_Delete_Call) RunAndReturn(run func(context.Context, int32) error) *MockTreeClusterService_Delete_Call
- type MockTreeClusterService_Expecter
- func (_e *MockTreeClusterService_Expecter) Create(ctx interface{}, createData interface{}) *MockTreeClusterService_Create_Call
- func (_e *MockTreeClusterService_Expecter) Delete(ctx interface{}, id interface{}) *MockTreeClusterService_Delete_Call
- func (_e *MockTreeClusterService_Expecter) GetAll(ctx interface{}, query interface{}) *MockTreeClusterService_GetAll_Call
- func (_e *MockTreeClusterService_Expecter) GetByID(ctx interface{}, id interface{}) *MockTreeClusterService_GetByID_Call
- func (_e *MockTreeClusterService_Expecter) HandleCreateTree(_a0 interface{}, _a1 interface{}) *MockTreeClusterService_HandleCreateTree_Call
- func (_e *MockTreeClusterService_Expecter) HandleDeleteTree(_a0 interface{}, _a1 interface{}) *MockTreeClusterService_HandleDeleteTree_Call
- func (_e *MockTreeClusterService_Expecter) HandleNewSensorData(_a0 interface{}, _a1 interface{}) *MockTreeClusterService_HandleNewSensorData_Call
- func (_e *MockTreeClusterService_Expecter) HandleUpdateTree(_a0 interface{}, _a1 interface{}) *MockTreeClusterService_HandleUpdateTree_Call
- func (_e *MockTreeClusterService_Expecter) HandleUpdateWateringPlan(_a0 interface{}, _a1 interface{}) *MockTreeClusterService_HandleUpdateWateringPlan_Call
- func (_e *MockTreeClusterService_Expecter) Ready() *MockTreeClusterService_Ready_Call
- func (_e *MockTreeClusterService_Expecter) Update(ctx interface{}, id interface{}, updateData interface{}) *MockTreeClusterService_Update_Call
- func (_e *MockTreeClusterService_Expecter) UpdateWateringStatuses(ctx interface{}) *MockTreeClusterService_UpdateWateringStatuses_Call
- type MockTreeClusterService_GetAll_Call
- func (_c *MockTreeClusterService_GetAll_Call) Return(_a0 []*entities.TreeCluster, _a1 int64, _a2 error) *MockTreeClusterService_GetAll_Call
- func (_c *MockTreeClusterService_GetAll_Call) Run(run func(ctx context.Context, query entities.TreeClusterQuery)) *MockTreeClusterService_GetAll_Call
- func (_c *MockTreeClusterService_GetAll_Call) RunAndReturn(...) *MockTreeClusterService_GetAll_Call
- type MockTreeClusterService_GetByID_Call
- func (_c *MockTreeClusterService_GetByID_Call) Return(_a0 *entities.TreeCluster, _a1 error) *MockTreeClusterService_GetByID_Call
- func (_c *MockTreeClusterService_GetByID_Call) Run(run func(ctx context.Context, id int32)) *MockTreeClusterService_GetByID_Call
- func (_c *MockTreeClusterService_GetByID_Call) RunAndReturn(run func(context.Context, int32) (*entities.TreeCluster, error)) *MockTreeClusterService_GetByID_Call
- type MockTreeClusterService_HandleCreateTree_Call
- func (_c *MockTreeClusterService_HandleCreateTree_Call) Return(_a0 error) *MockTreeClusterService_HandleCreateTree_Call
- func (_c *MockTreeClusterService_HandleCreateTree_Call) Run(run func(_a0 context.Context, _a1 *entities.EventCreateTree)) *MockTreeClusterService_HandleCreateTree_Call
- func (_c *MockTreeClusterService_HandleCreateTree_Call) RunAndReturn(run func(context.Context, *entities.EventCreateTree) error) *MockTreeClusterService_HandleCreateTree_Call
- type MockTreeClusterService_HandleDeleteTree_Call
- func (_c *MockTreeClusterService_HandleDeleteTree_Call) Return(_a0 error) *MockTreeClusterService_HandleDeleteTree_Call
- func (_c *MockTreeClusterService_HandleDeleteTree_Call) Run(run func(_a0 context.Context, _a1 *entities.EventDeleteTree)) *MockTreeClusterService_HandleDeleteTree_Call
- func (_c *MockTreeClusterService_HandleDeleteTree_Call) RunAndReturn(run func(context.Context, *entities.EventDeleteTree) error) *MockTreeClusterService_HandleDeleteTree_Call
- type MockTreeClusterService_HandleNewSensorData_Call
- func (_c *MockTreeClusterService_HandleNewSensorData_Call) Return(_a0 error) *MockTreeClusterService_HandleNewSensorData_Call
- func (_c *MockTreeClusterService_HandleNewSensorData_Call) Run(run func(_a0 context.Context, _a1 *entities.EventNewSensorData)) *MockTreeClusterService_HandleNewSensorData_Call
- func (_c *MockTreeClusterService_HandleNewSensorData_Call) RunAndReturn(run func(context.Context, *entities.EventNewSensorData) error) *MockTreeClusterService_HandleNewSensorData_Call
- type MockTreeClusterService_HandleUpdateTree_Call
- func (_c *MockTreeClusterService_HandleUpdateTree_Call) Return(_a0 error) *MockTreeClusterService_HandleUpdateTree_Call
- func (_c *MockTreeClusterService_HandleUpdateTree_Call) Run(run func(_a0 context.Context, _a1 *entities.EventUpdateTree)) *MockTreeClusterService_HandleUpdateTree_Call
- func (_c *MockTreeClusterService_HandleUpdateTree_Call) RunAndReturn(run func(context.Context, *entities.EventUpdateTree) error) *MockTreeClusterService_HandleUpdateTree_Call
- type MockTreeClusterService_HandleUpdateWateringPlan_Call
- func (_c *MockTreeClusterService_HandleUpdateWateringPlan_Call) Return(_a0 error) *MockTreeClusterService_HandleUpdateWateringPlan_Call
- func (_c *MockTreeClusterService_HandleUpdateWateringPlan_Call) Run(run func(_a0 context.Context, _a1 *entities.EventUpdateWateringPlan)) *MockTreeClusterService_HandleUpdateWateringPlan_Call
- func (_c *MockTreeClusterService_HandleUpdateWateringPlan_Call) RunAndReturn(run func(context.Context, *entities.EventUpdateWateringPlan) error) *MockTreeClusterService_HandleUpdateWateringPlan_Call
- type MockTreeClusterService_Ready_Call
- func (_c *MockTreeClusterService_Ready_Call) Return(_a0 bool) *MockTreeClusterService_Ready_Call
- func (_c *MockTreeClusterService_Ready_Call) Run(run func()) *MockTreeClusterService_Ready_Call
- func (_c *MockTreeClusterService_Ready_Call) RunAndReturn(run func() bool) *MockTreeClusterService_Ready_Call
- type MockTreeClusterService_UpdateWateringStatuses_Call
- func (_c *MockTreeClusterService_UpdateWateringStatuses_Call) Return(_a0 error) *MockTreeClusterService_UpdateWateringStatuses_Call
- func (_c *MockTreeClusterService_UpdateWateringStatuses_Call) Run(run func(ctx context.Context)) *MockTreeClusterService_UpdateWateringStatuses_Call
- func (_c *MockTreeClusterService_UpdateWateringStatuses_Call) RunAndReturn(run func(context.Context) error) *MockTreeClusterService_UpdateWateringStatuses_Call
- type MockTreeClusterService_Update_Call
- func (_c *MockTreeClusterService_Update_Call) Return(_a0 *entities.TreeCluster, _a1 error) *MockTreeClusterService_Update_Call
- func (_c *MockTreeClusterService_Update_Call) Run(...) *MockTreeClusterService_Update_Call
- func (_c *MockTreeClusterService_Update_Call) RunAndReturn(...) *MockTreeClusterService_Update_Call
- type MockTreeService
- func (_m *MockTreeService) Create(ctx context.Context, createData *entities.TreeCreate) (*entities.Tree, error)
- func (_m *MockTreeService) Delete(ctx context.Context, id int32) error
- func (_m *MockTreeService) EXPECT() *MockTreeService_Expecter
- func (_m *MockTreeService) GetAll(ctx context.Context, query entities.TreeQuery) ([]*entities.Tree, int64, error)
- func (_m *MockTreeService) GetByID(ctx context.Context, id int32) (*entities.Tree, error)
- func (_m *MockTreeService) GetBySensorID(ctx context.Context, id string) (*entities.Tree, error)
- func (_m *MockTreeService) HandleNewSensorData(_a0 context.Context, _a1 *entities.EventNewSensorData) error
- func (_m *MockTreeService) Ready() bool
- func (_m *MockTreeService) Update(ctx context.Context, id int32, updateData *entities.TreeUpdate) (*entities.Tree, error)
- func (_m *MockTreeService) UpdateWateringStatuses(ctx context.Context) error
- type MockTreeService_Create_Call
- func (_c *MockTreeService_Create_Call) Return(_a0 *entities.Tree, _a1 error) *MockTreeService_Create_Call
- func (_c *MockTreeService_Create_Call) Run(run func(ctx context.Context, createData *entities.TreeCreate)) *MockTreeService_Create_Call
- func (_c *MockTreeService_Create_Call) RunAndReturn(run func(context.Context, *entities.TreeCreate) (*entities.Tree, error)) *MockTreeService_Create_Call
- type MockTreeService_Delete_Call
- func (_c *MockTreeService_Delete_Call) Return(_a0 error) *MockTreeService_Delete_Call
- func (_c *MockTreeService_Delete_Call) Run(run func(ctx context.Context, id int32)) *MockTreeService_Delete_Call
- func (_c *MockTreeService_Delete_Call) RunAndReturn(run func(context.Context, int32) error) *MockTreeService_Delete_Call
- type MockTreeService_Expecter
- func (_e *MockTreeService_Expecter) Create(ctx interface{}, createData interface{}) *MockTreeService_Create_Call
- func (_e *MockTreeService_Expecter) Delete(ctx interface{}, id interface{}) *MockTreeService_Delete_Call
- func (_e *MockTreeService_Expecter) GetAll(ctx interface{}, query interface{}) *MockTreeService_GetAll_Call
- func (_e *MockTreeService_Expecter) GetByID(ctx interface{}, id interface{}) *MockTreeService_GetByID_Call
- func (_e *MockTreeService_Expecter) GetBySensorID(ctx interface{}, id interface{}) *MockTreeService_GetBySensorID_Call
- func (_e *MockTreeService_Expecter) HandleNewSensorData(_a0 interface{}, _a1 interface{}) *MockTreeService_HandleNewSensorData_Call
- func (_e *MockTreeService_Expecter) Ready() *MockTreeService_Ready_Call
- func (_e *MockTreeService_Expecter) Update(ctx interface{}, id interface{}, updateData interface{}) *MockTreeService_Update_Call
- func (_e *MockTreeService_Expecter) UpdateWateringStatuses(ctx interface{}) *MockTreeService_UpdateWateringStatuses_Call
- type MockTreeService_GetAll_Call
- func (_c *MockTreeService_GetAll_Call) Return(_a0 []*entities.Tree, _a1 int64, _a2 error) *MockTreeService_GetAll_Call
- func (_c *MockTreeService_GetAll_Call) Run(run func(ctx context.Context, query entities.TreeQuery)) *MockTreeService_GetAll_Call
- func (_c *MockTreeService_GetAll_Call) RunAndReturn(run func(context.Context, entities.TreeQuery) ([]*entities.Tree, int64, error)) *MockTreeService_GetAll_Call
- type MockTreeService_GetByID_Call
- func (_c *MockTreeService_GetByID_Call) Return(_a0 *entities.Tree, _a1 error) *MockTreeService_GetByID_Call
- func (_c *MockTreeService_GetByID_Call) Run(run func(ctx context.Context, id int32)) *MockTreeService_GetByID_Call
- func (_c *MockTreeService_GetByID_Call) RunAndReturn(run func(context.Context, int32) (*entities.Tree, error)) *MockTreeService_GetByID_Call
- type MockTreeService_GetBySensorID_Call
- func (_c *MockTreeService_GetBySensorID_Call) Return(_a0 *entities.Tree, _a1 error) *MockTreeService_GetBySensorID_Call
- func (_c *MockTreeService_GetBySensorID_Call) Run(run func(ctx context.Context, id string)) *MockTreeService_GetBySensorID_Call
- func (_c *MockTreeService_GetBySensorID_Call) RunAndReturn(run func(context.Context, string) (*entities.Tree, error)) *MockTreeService_GetBySensorID_Call
- type MockTreeService_HandleNewSensorData_Call
- func (_c *MockTreeService_HandleNewSensorData_Call) Return(_a0 error) *MockTreeService_HandleNewSensorData_Call
- func (_c *MockTreeService_HandleNewSensorData_Call) Run(run func(_a0 context.Context, _a1 *entities.EventNewSensorData)) *MockTreeService_HandleNewSensorData_Call
- func (_c *MockTreeService_HandleNewSensorData_Call) RunAndReturn(run func(context.Context, *entities.EventNewSensorData) error) *MockTreeService_HandleNewSensorData_Call
- type MockTreeService_Ready_Call
- type MockTreeService_UpdateWateringStatuses_Call
- func (_c *MockTreeService_UpdateWateringStatuses_Call) Return(_a0 error) *MockTreeService_UpdateWateringStatuses_Call
- func (_c *MockTreeService_UpdateWateringStatuses_Call) Run(run func(ctx context.Context)) *MockTreeService_UpdateWateringStatuses_Call
- func (_c *MockTreeService_UpdateWateringStatuses_Call) RunAndReturn(run func(context.Context) error) *MockTreeService_UpdateWateringStatuses_Call
- type MockTreeService_Update_Call
- func (_c *MockTreeService_Update_Call) Return(_a0 *entities.Tree, _a1 error) *MockTreeService_Update_Call
- func (_c *MockTreeService_Update_Call) Run(run func(ctx context.Context, id int32, updateData *entities.TreeUpdate)) *MockTreeService_Update_Call
- func (_c *MockTreeService_Update_Call) RunAndReturn(run func(context.Context, int32, *entities.TreeUpdate) (*entities.Tree, error)) *MockTreeService_Update_Call
- type MockVehicleService
- func (_m *MockVehicleService) Archive(ctx context.Context, id int32) error
- func (_m *MockVehicleService) Create(ctx context.Context, createData *entities.VehicleCreate) (*entities.Vehicle, error)
- func (_m *MockVehicleService) Delete(ctx context.Context, id int32) error
- func (_m *MockVehicleService) EXPECT() *MockVehicleService_Expecter
- func (_m *MockVehicleService) GetAll(ctx context.Context, query entities.VehicleQuery) ([]*entities.Vehicle, int64, error)
- func (_m *MockVehicleService) GetAllArchived(ctx context.Context) ([]*entities.Vehicle, error)
- func (_m *MockVehicleService) GetByID(ctx context.Context, id int32) (*entities.Vehicle, error)
- func (_m *MockVehicleService) GetByPlate(ctx context.Context, plate string) (*entities.Vehicle, error)
- func (_m *MockVehicleService) Ready() bool
- func (_m *MockVehicleService) Update(ctx context.Context, id int32, updateData *entities.VehicleUpdate) (*entities.Vehicle, error)
- type MockVehicleService_Archive_Call
- func (_c *MockVehicleService_Archive_Call) Return(_a0 error) *MockVehicleService_Archive_Call
- func (_c *MockVehicleService_Archive_Call) Run(run func(ctx context.Context, id int32)) *MockVehicleService_Archive_Call
- func (_c *MockVehicleService_Archive_Call) RunAndReturn(run func(context.Context, int32) error) *MockVehicleService_Archive_Call
- type MockVehicleService_Create_Call
- func (_c *MockVehicleService_Create_Call) Return(_a0 *entities.Vehicle, _a1 error) *MockVehicleService_Create_Call
- func (_c *MockVehicleService_Create_Call) Run(run func(ctx context.Context, createData *entities.VehicleCreate)) *MockVehicleService_Create_Call
- func (_c *MockVehicleService_Create_Call) RunAndReturn(run func(context.Context, *entities.VehicleCreate) (*entities.Vehicle, error)) *MockVehicleService_Create_Call
- type MockVehicleService_Delete_Call
- func (_c *MockVehicleService_Delete_Call) Return(_a0 error) *MockVehicleService_Delete_Call
- func (_c *MockVehicleService_Delete_Call) Run(run func(ctx context.Context, id int32)) *MockVehicleService_Delete_Call
- func (_c *MockVehicleService_Delete_Call) RunAndReturn(run func(context.Context, int32) error) *MockVehicleService_Delete_Call
- type MockVehicleService_Expecter
- func (_e *MockVehicleService_Expecter) Archive(ctx interface{}, id interface{}) *MockVehicleService_Archive_Call
- func (_e *MockVehicleService_Expecter) Create(ctx interface{}, createData interface{}) *MockVehicleService_Create_Call
- func (_e *MockVehicleService_Expecter) Delete(ctx interface{}, id interface{}) *MockVehicleService_Delete_Call
- func (_e *MockVehicleService_Expecter) GetAll(ctx interface{}, query interface{}) *MockVehicleService_GetAll_Call
- func (_e *MockVehicleService_Expecter) GetAllArchived(ctx interface{}) *MockVehicleService_GetAllArchived_Call
- func (_e *MockVehicleService_Expecter) GetByID(ctx interface{}, id interface{}) *MockVehicleService_GetByID_Call
- func (_e *MockVehicleService_Expecter) GetByPlate(ctx interface{}, plate interface{}) *MockVehicleService_GetByPlate_Call
- func (_e *MockVehicleService_Expecter) Ready() *MockVehicleService_Ready_Call
- func (_e *MockVehicleService_Expecter) Update(ctx interface{}, id interface{}, updateData interface{}) *MockVehicleService_Update_Call
- type MockVehicleService_GetAllArchived_Call
- func (_c *MockVehicleService_GetAllArchived_Call) Return(_a0 []*entities.Vehicle, _a1 error) *MockVehicleService_GetAllArchived_Call
- func (_c *MockVehicleService_GetAllArchived_Call) Run(run func(ctx context.Context)) *MockVehicleService_GetAllArchived_Call
- func (_c *MockVehicleService_GetAllArchived_Call) RunAndReturn(run func(context.Context) ([]*entities.Vehicle, error)) *MockVehicleService_GetAllArchived_Call
- type MockVehicleService_GetAll_Call
- func (_c *MockVehicleService_GetAll_Call) Return(_a0 []*entities.Vehicle, _a1 int64, _a2 error) *MockVehicleService_GetAll_Call
- func (_c *MockVehicleService_GetAll_Call) Run(run func(ctx context.Context, query entities.VehicleQuery)) *MockVehicleService_GetAll_Call
- func (_c *MockVehicleService_GetAll_Call) RunAndReturn(...) *MockVehicleService_GetAll_Call
- type MockVehicleService_GetByID_Call
- func (_c *MockVehicleService_GetByID_Call) Return(_a0 *entities.Vehicle, _a1 error) *MockVehicleService_GetByID_Call
- func (_c *MockVehicleService_GetByID_Call) Run(run func(ctx context.Context, id int32)) *MockVehicleService_GetByID_Call
- func (_c *MockVehicleService_GetByID_Call) RunAndReturn(run func(context.Context, int32) (*entities.Vehicle, error)) *MockVehicleService_GetByID_Call
- type MockVehicleService_GetByPlate_Call
- func (_c *MockVehicleService_GetByPlate_Call) Return(_a0 *entities.Vehicle, _a1 error) *MockVehicleService_GetByPlate_Call
- func (_c *MockVehicleService_GetByPlate_Call) Run(run func(ctx context.Context, plate string)) *MockVehicleService_GetByPlate_Call
- func (_c *MockVehicleService_GetByPlate_Call) RunAndReturn(run func(context.Context, string) (*entities.Vehicle, error)) *MockVehicleService_GetByPlate_Call
- type MockVehicleService_Ready_Call
- type MockVehicleService_Update_Call
- func (_c *MockVehicleService_Update_Call) Return(_a0 *entities.Vehicle, _a1 error) *MockVehicleService_Update_Call
- func (_c *MockVehicleService_Update_Call) Run(run func(ctx context.Context, id int32, updateData *entities.VehicleUpdate)) *MockVehicleService_Update_Call
- func (_c *MockVehicleService_Update_Call) RunAndReturn(...) *MockVehicleService_Update_Call
- type MockWateringPlanService
- func (_m *MockWateringPlanService) Create(ctx context.Context, createData *entities.WateringPlanCreate) (*entities.WateringPlan, error)
- func (_m *MockWateringPlanService) Delete(ctx context.Context, id int32) error
- func (_m *MockWateringPlanService) EXPECT() *MockWateringPlanService_Expecter
- func (_m *MockWateringPlanService) GetAll(ctx context.Context, query entities.Query) ([]*entities.WateringPlan, int64, error)
- func (_m *MockWateringPlanService) GetByID(ctx context.Context, id int32) (*entities.WateringPlan, error)
- func (_m *MockWateringPlanService) GetGPXFileStream(ctx context.Context, objName string) (io.ReadSeekCloser, error)
- func (_m *MockWateringPlanService) PreviewRoute(ctx context.Context, transporterID int32, trailerID *int32, clusterIDs []int32) (*entities.GeoJSON, error)
- func (_m *MockWateringPlanService) Ready() bool
- func (_m *MockWateringPlanService) Update(ctx context.Context, id int32, updateData *entities.WateringPlanUpdate) (*entities.WateringPlan, error)
- func (_m *MockWateringPlanService) UpdateStatuses(ctx context.Context) error
- type MockWateringPlanService_Create_Call
- func (_c *MockWateringPlanService_Create_Call) Return(_a0 *entities.WateringPlan, _a1 error) *MockWateringPlanService_Create_Call
- func (_c *MockWateringPlanService_Create_Call) Run(run func(ctx context.Context, createData *entities.WateringPlanCreate)) *MockWateringPlanService_Create_Call
- func (_c *MockWateringPlanService_Create_Call) RunAndReturn(...) *MockWateringPlanService_Create_Call
- type MockWateringPlanService_Delete_Call
- func (_c *MockWateringPlanService_Delete_Call) Return(_a0 error) *MockWateringPlanService_Delete_Call
- func (_c *MockWateringPlanService_Delete_Call) Run(run func(ctx context.Context, id int32)) *MockWateringPlanService_Delete_Call
- func (_c *MockWateringPlanService_Delete_Call) RunAndReturn(run func(context.Context, int32) error) *MockWateringPlanService_Delete_Call
- type MockWateringPlanService_Expecter
- func (_e *MockWateringPlanService_Expecter) Create(ctx interface{}, createData interface{}) *MockWateringPlanService_Create_Call
- func (_e *MockWateringPlanService_Expecter) Delete(ctx interface{}, id interface{}) *MockWateringPlanService_Delete_Call
- func (_e *MockWateringPlanService_Expecter) GetAll(ctx interface{}, query interface{}) *MockWateringPlanService_GetAll_Call
- func (_e *MockWateringPlanService_Expecter) GetByID(ctx interface{}, id interface{}) *MockWateringPlanService_GetByID_Call
- func (_e *MockWateringPlanService_Expecter) GetGPXFileStream(ctx interface{}, objName interface{}) *MockWateringPlanService_GetGPXFileStream_Call
- func (_e *MockWateringPlanService_Expecter) PreviewRoute(ctx interface{}, transporterID interface{}, trailerID interface{}, ...) *MockWateringPlanService_PreviewRoute_Call
- func (_e *MockWateringPlanService_Expecter) Ready() *MockWateringPlanService_Ready_Call
- func (_e *MockWateringPlanService_Expecter) Update(ctx interface{}, id interface{}, updateData interface{}) *MockWateringPlanService_Update_Call
- func (_e *MockWateringPlanService_Expecter) UpdateStatuses(ctx interface{}) *MockWateringPlanService_UpdateStatuses_Call
- type MockWateringPlanService_GetAll_Call
- func (_c *MockWateringPlanService_GetAll_Call) Return(_a0 []*entities.WateringPlan, _a1 int64, _a2 error) *MockWateringPlanService_GetAll_Call
- func (_c *MockWateringPlanService_GetAll_Call) Run(run func(ctx context.Context, query entities.Query)) *MockWateringPlanService_GetAll_Call
- func (_c *MockWateringPlanService_GetAll_Call) RunAndReturn(...) *MockWateringPlanService_GetAll_Call
- type MockWateringPlanService_GetByID_Call
- func (_c *MockWateringPlanService_GetByID_Call) Return(_a0 *entities.WateringPlan, _a1 error) *MockWateringPlanService_GetByID_Call
- func (_c *MockWateringPlanService_GetByID_Call) Run(run func(ctx context.Context, id int32)) *MockWateringPlanService_GetByID_Call
- func (_c *MockWateringPlanService_GetByID_Call) RunAndReturn(run func(context.Context, int32) (*entities.WateringPlan, error)) *MockWateringPlanService_GetByID_Call
- type MockWateringPlanService_GetGPXFileStream_Call
- func (_c *MockWateringPlanService_GetGPXFileStream_Call) Return(_a0 io.ReadSeekCloser, _a1 error) *MockWateringPlanService_GetGPXFileStream_Call
- func (_c *MockWateringPlanService_GetGPXFileStream_Call) Run(run func(ctx context.Context, objName string)) *MockWateringPlanService_GetGPXFileStream_Call
- func (_c *MockWateringPlanService_GetGPXFileStream_Call) RunAndReturn(run func(context.Context, string) (io.ReadSeekCloser, error)) *MockWateringPlanService_GetGPXFileStream_Call
- type MockWateringPlanService_PreviewRoute_Call
- func (_c *MockWateringPlanService_PreviewRoute_Call) Return(_a0 *entities.GeoJSON, _a1 error) *MockWateringPlanService_PreviewRoute_Call
- func (_c *MockWateringPlanService_PreviewRoute_Call) Run(...) *MockWateringPlanService_PreviewRoute_Call
- func (_c *MockWateringPlanService_PreviewRoute_Call) RunAndReturn(run func(context.Context, int32, *int32, []int32) (*entities.GeoJSON, error)) *MockWateringPlanService_PreviewRoute_Call
- type MockWateringPlanService_Ready_Call
- func (_c *MockWateringPlanService_Ready_Call) Return(_a0 bool) *MockWateringPlanService_Ready_Call
- func (_c *MockWateringPlanService_Ready_Call) Run(run func()) *MockWateringPlanService_Ready_Call
- func (_c *MockWateringPlanService_Ready_Call) RunAndReturn(run func() bool) *MockWateringPlanService_Ready_Call
- type MockWateringPlanService_UpdateStatuses_Call
- func (_c *MockWateringPlanService_UpdateStatuses_Call) Return(_a0 error) *MockWateringPlanService_UpdateStatuses_Call
- func (_c *MockWateringPlanService_UpdateStatuses_Call) Run(run func(ctx context.Context)) *MockWateringPlanService_UpdateStatuses_Call
- func (_c *MockWateringPlanService_UpdateStatuses_Call) RunAndReturn(run func(context.Context) error) *MockWateringPlanService_UpdateStatuses_Call
- type MockWateringPlanService_Update_Call
- func (_c *MockWateringPlanService_Update_Call) Return(_a0 *entities.WateringPlan, _a1 error) *MockWateringPlanService_Update_Call
- func (_c *MockWateringPlanService_Update_Call) Run(...) *MockWateringPlanService_Update_Call
- func (_c *MockWateringPlanService_Update_Call) RunAndReturn(...) *MockWateringPlanService_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthService ¶
MockAuthService is an autogenerated mock type for the AuthService type
func NewMockAuthService ¶
func NewMockAuthService(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuthService
NewMockAuthService creates a new instance of MockAuthService. 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 (*MockAuthService) ClientTokenCallback ¶
func (_m *MockAuthService) ClientTokenCallback(ctx context.Context, loginCallback *entities.LoginCallback) (*entities.ClientToken, error)
ClientTokenCallback provides a mock function with given fields: ctx, loginCallback
func (*MockAuthService) EXPECT ¶
func (_m *MockAuthService) EXPECT() *MockAuthService_Expecter
func (*MockAuthService) GetAllByRole ¶
func (_m *MockAuthService) GetAllByRole(ctx context.Context, role entities.UserRole) ([]*entities.User, error)
GetAllByRole provides a mock function with given fields: ctx, role
func (*MockAuthService) LoginRequest ¶
func (_m *MockAuthService) LoginRequest(ctx context.Context, loginRequest *entities.LoginRequest) *entities.LoginResp
LoginRequest provides a mock function with given fields: ctx, loginRequest
func (*MockAuthService) LogoutRequest ¶
LogoutRequest provides a mock function with given fields: ctx, logoutRequest
func (*MockAuthService) Ready ¶
func (_m *MockAuthService) Ready() bool
Ready provides a mock function with no fields
func (*MockAuthService) RefreshToken ¶
func (_m *MockAuthService) RefreshToken(ctx context.Context, refreshToken string) (*entities.ClientToken, error)
RefreshToken provides a mock function with given fields: ctx, refreshToken
func (*MockAuthService) Register ¶
func (_m *MockAuthService) Register(ctx context.Context, user *entities.RegisterUser) (*entities.User, error)
Register provides a mock function with given fields: ctx, user
func (*MockAuthService) RetrospectToken ¶
func (_m *MockAuthService) RetrospectToken(ctx context.Context, token string) (*entities.IntroSpectTokenResult, error)
RetrospectToken provides a mock function with given fields: ctx, token
type MockAuthService_ClientTokenCallback_Call ¶
MockAuthService_ClientTokenCallback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClientTokenCallback'
func (*MockAuthService_ClientTokenCallback_Call) Return ¶
func (_c *MockAuthService_ClientTokenCallback_Call) Return(_a0 *entities.ClientToken, _a1 error) *MockAuthService_ClientTokenCallback_Call
func (*MockAuthService_ClientTokenCallback_Call) Run ¶
func (_c *MockAuthService_ClientTokenCallback_Call) Run(run func(ctx context.Context, loginCallback *entities.LoginCallback)) *MockAuthService_ClientTokenCallback_Call
func (*MockAuthService_ClientTokenCallback_Call) RunAndReturn ¶
func (_c *MockAuthService_ClientTokenCallback_Call) RunAndReturn(run func(context.Context, *entities.LoginCallback) (*entities.ClientToken, error)) *MockAuthService_ClientTokenCallback_Call
type MockAuthService_Expecter ¶
type MockAuthService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthService_Expecter) ClientTokenCallback ¶
func (_e *MockAuthService_Expecter) ClientTokenCallback(ctx interface{}, loginCallback interface{}) *MockAuthService_ClientTokenCallback_Call
ClientTokenCallback is a helper method to define mock.On call
- ctx context.Context
- loginCallback *entities.LoginCallback
func (*MockAuthService_Expecter) GetAll ¶
func (_e *MockAuthService_Expecter) GetAll(ctx interface{}) *MockAuthService_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
func (*MockAuthService_Expecter) GetAllByRole ¶
func (_e *MockAuthService_Expecter) GetAllByRole(ctx interface{}, role interface{}) *MockAuthService_GetAllByRole_Call
GetAllByRole is a helper method to define mock.On call
- ctx context.Context
- role entities.UserRole
func (*MockAuthService_Expecter) GetByIDs ¶
func (_e *MockAuthService_Expecter) GetByIDs(ctx interface{}, ids interface{}) *MockAuthService_GetByIDs_Call
GetByIDs is a helper method to define mock.On call
- ctx context.Context
- ids []string
func (*MockAuthService_Expecter) LoginRequest ¶
func (_e *MockAuthService_Expecter) LoginRequest(ctx interface{}, loginRequest interface{}) *MockAuthService_LoginRequest_Call
LoginRequest is a helper method to define mock.On call
- ctx context.Context
- loginRequest *entities.LoginRequest
func (*MockAuthService_Expecter) LogoutRequest ¶
func (_e *MockAuthService_Expecter) LogoutRequest(ctx interface{}, logoutRequest interface{}) *MockAuthService_LogoutRequest_Call
LogoutRequest is a helper method to define mock.On call
- ctx context.Context
- logoutRequest *entities.Logout
func (*MockAuthService_Expecter) Ready ¶
func (_e *MockAuthService_Expecter) Ready() *MockAuthService_Ready_Call
Ready is a helper method to define mock.On call
func (*MockAuthService_Expecter) RefreshToken ¶
func (_e *MockAuthService_Expecter) RefreshToken(ctx interface{}, refreshToken interface{}) *MockAuthService_RefreshToken_Call
RefreshToken is a helper method to define mock.On call
- ctx context.Context
- refreshToken string
func (*MockAuthService_Expecter) Register ¶
func (_e *MockAuthService_Expecter) Register(ctx interface{}, user interface{}) *MockAuthService_Register_Call
Register is a helper method to define mock.On call
- ctx context.Context
- user *entities.RegisterUser
func (*MockAuthService_Expecter) RetrospectToken ¶
func (_e *MockAuthService_Expecter) RetrospectToken(ctx interface{}, token interface{}) *MockAuthService_RetrospectToken_Call
RetrospectToken is a helper method to define mock.On call
- ctx context.Context
- token string
type MockAuthService_GetAllByRole_Call ¶
MockAuthService_GetAllByRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllByRole'
func (*MockAuthService_GetAllByRole_Call) Return ¶
func (_c *MockAuthService_GetAllByRole_Call) Return(_a0 []*entities.User, _a1 error) *MockAuthService_GetAllByRole_Call
func (*MockAuthService_GetAllByRole_Call) Run ¶
func (_c *MockAuthService_GetAllByRole_Call) Run(run func(ctx context.Context, role entities.UserRole)) *MockAuthService_GetAllByRole_Call
func (*MockAuthService_GetAllByRole_Call) RunAndReturn ¶
func (_c *MockAuthService_GetAllByRole_Call) RunAndReturn(run func(context.Context, entities.UserRole) ([]*entities.User, error)) *MockAuthService_GetAllByRole_Call
type MockAuthService_GetAll_Call ¶
MockAuthService_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockAuthService_GetAll_Call) Return ¶
func (_c *MockAuthService_GetAll_Call) Return(_a0 []*entities.User, _a1 error) *MockAuthService_GetAll_Call
func (*MockAuthService_GetAll_Call) Run ¶
func (_c *MockAuthService_GetAll_Call) Run(run func(ctx context.Context)) *MockAuthService_GetAll_Call
func (*MockAuthService_GetAll_Call) RunAndReturn ¶
func (_c *MockAuthService_GetAll_Call) RunAndReturn(run func(context.Context) ([]*entities.User, error)) *MockAuthService_GetAll_Call
type MockAuthService_GetByIDs_Call ¶
MockAuthService_GetByIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIDs'
func (*MockAuthService_GetByIDs_Call) Return ¶
func (_c *MockAuthService_GetByIDs_Call) Return(_a0 []*entities.User, _a1 error) *MockAuthService_GetByIDs_Call
func (*MockAuthService_GetByIDs_Call) Run ¶
func (_c *MockAuthService_GetByIDs_Call) Run(run func(ctx context.Context, ids []string)) *MockAuthService_GetByIDs_Call
func (*MockAuthService_GetByIDs_Call) RunAndReturn ¶
func (_c *MockAuthService_GetByIDs_Call) RunAndReturn(run func(context.Context, []string) ([]*entities.User, error)) *MockAuthService_GetByIDs_Call
type MockAuthService_LoginRequest_Call ¶
MockAuthService_LoginRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoginRequest'
func (*MockAuthService_LoginRequest_Call) Return ¶
func (_c *MockAuthService_LoginRequest_Call) Return(_a0 *entities.LoginResp) *MockAuthService_LoginRequest_Call
func (*MockAuthService_LoginRequest_Call) Run ¶
func (_c *MockAuthService_LoginRequest_Call) Run(run func(ctx context.Context, loginRequest *entities.LoginRequest)) *MockAuthService_LoginRequest_Call
func (*MockAuthService_LoginRequest_Call) RunAndReturn ¶
func (_c *MockAuthService_LoginRequest_Call) RunAndReturn(run func(context.Context, *entities.LoginRequest) *entities.LoginResp) *MockAuthService_LoginRequest_Call
type MockAuthService_LogoutRequest_Call ¶
MockAuthService_LogoutRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LogoutRequest'
func (*MockAuthService_LogoutRequest_Call) Return ¶
func (_c *MockAuthService_LogoutRequest_Call) Return(_a0 error) *MockAuthService_LogoutRequest_Call
func (*MockAuthService_LogoutRequest_Call) Run ¶
func (_c *MockAuthService_LogoutRequest_Call) Run(run func(ctx context.Context, logoutRequest *entities.Logout)) *MockAuthService_LogoutRequest_Call
func (*MockAuthService_LogoutRequest_Call) RunAndReturn ¶
func (_c *MockAuthService_LogoutRequest_Call) RunAndReturn(run func(context.Context, *entities.Logout) error) *MockAuthService_LogoutRequest_Call
type MockAuthService_Ready_Call ¶
MockAuthService_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockAuthService_Ready_Call) Return ¶
func (_c *MockAuthService_Ready_Call) Return(_a0 bool) *MockAuthService_Ready_Call
func (*MockAuthService_Ready_Call) Run ¶
func (_c *MockAuthService_Ready_Call) Run(run func()) *MockAuthService_Ready_Call
func (*MockAuthService_Ready_Call) RunAndReturn ¶
func (_c *MockAuthService_Ready_Call) RunAndReturn(run func() bool) *MockAuthService_Ready_Call
type MockAuthService_RefreshToken_Call ¶
MockAuthService_RefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshToken'
func (*MockAuthService_RefreshToken_Call) Return ¶
func (_c *MockAuthService_RefreshToken_Call) Return(_a0 *entities.ClientToken, _a1 error) *MockAuthService_RefreshToken_Call
func (*MockAuthService_RefreshToken_Call) Run ¶
func (_c *MockAuthService_RefreshToken_Call) Run(run func(ctx context.Context, refreshToken string)) *MockAuthService_RefreshToken_Call
func (*MockAuthService_RefreshToken_Call) RunAndReturn ¶
func (_c *MockAuthService_RefreshToken_Call) RunAndReturn(run func(context.Context, string) (*entities.ClientToken, error)) *MockAuthService_RefreshToken_Call
type MockAuthService_Register_Call ¶
MockAuthService_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*MockAuthService_Register_Call) Return ¶
func (_c *MockAuthService_Register_Call) Return(_a0 *entities.User, _a1 error) *MockAuthService_Register_Call
func (*MockAuthService_Register_Call) Run ¶
func (_c *MockAuthService_Register_Call) Run(run func(ctx context.Context, user *entities.RegisterUser)) *MockAuthService_Register_Call
func (*MockAuthService_Register_Call) RunAndReturn ¶
func (_c *MockAuthService_Register_Call) RunAndReturn(run func(context.Context, *entities.RegisterUser) (*entities.User, error)) *MockAuthService_Register_Call
type MockAuthService_RetrospectToken_Call ¶
MockAuthService_RetrospectToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrospectToken'
func (*MockAuthService_RetrospectToken_Call) Return ¶
func (_c *MockAuthService_RetrospectToken_Call) Return(_a0 *entities.IntroSpectTokenResult, _a1 error) *MockAuthService_RetrospectToken_Call
func (*MockAuthService_RetrospectToken_Call) Run ¶
func (_c *MockAuthService_RetrospectToken_Call) Run(run func(ctx context.Context, token string)) *MockAuthService_RetrospectToken_Call
func (*MockAuthService_RetrospectToken_Call) RunAndReturn ¶
func (_c *MockAuthService_RetrospectToken_Call) RunAndReturn(run func(context.Context, string) (*entities.IntroSpectTokenResult, error)) *MockAuthService_RetrospectToken_Call
type MockEvaluationService ¶
MockEvaluationService is an autogenerated mock type for the EvaluationService type
func NewMockEvaluationService ¶
func NewMockEvaluationService(t interface {
mock.TestingT
Cleanup(func())
}) *MockEvaluationService
NewMockEvaluationService creates a new instance of MockEvaluationService. 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 (*MockEvaluationService) EXPECT ¶
func (_m *MockEvaluationService) EXPECT() *MockEvaluationService_Expecter
func (*MockEvaluationService) GetEvaluation ¶
func (_m *MockEvaluationService) GetEvaluation(ctx context.Context) (*entities.Evaluation, error)
GetEvaluation provides a mock function with given fields: ctx
func (*MockEvaluationService) Ready ¶
func (_m *MockEvaluationService) Ready() bool
Ready provides a mock function with no fields
type MockEvaluationService_Expecter ¶
type MockEvaluationService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockEvaluationService_Expecter) GetEvaluation ¶
func (_e *MockEvaluationService_Expecter) GetEvaluation(ctx interface{}) *MockEvaluationService_GetEvaluation_Call
GetEvaluation is a helper method to define mock.On call
- ctx context.Context
func (*MockEvaluationService_Expecter) Ready ¶
func (_e *MockEvaluationService_Expecter) Ready() *MockEvaluationService_Ready_Call
Ready is a helper method to define mock.On call
type MockEvaluationService_GetEvaluation_Call ¶
MockEvaluationService_GetEvaluation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEvaluation'
func (*MockEvaluationService_GetEvaluation_Call) Return ¶
func (_c *MockEvaluationService_GetEvaluation_Call) Return(_a0 *entities.Evaluation, _a1 error) *MockEvaluationService_GetEvaluation_Call
func (*MockEvaluationService_GetEvaluation_Call) Run ¶
func (_c *MockEvaluationService_GetEvaluation_Call) Run(run func(ctx context.Context)) *MockEvaluationService_GetEvaluation_Call
func (*MockEvaluationService_GetEvaluation_Call) RunAndReturn ¶
func (_c *MockEvaluationService_GetEvaluation_Call) RunAndReturn(run func(context.Context) (*entities.Evaluation, error)) *MockEvaluationService_GetEvaluation_Call
type MockEvaluationService_Ready_Call ¶
MockEvaluationService_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockEvaluationService_Ready_Call) Return ¶
func (_c *MockEvaluationService_Ready_Call) Return(_a0 bool) *MockEvaluationService_Ready_Call
func (*MockEvaluationService_Ready_Call) Run ¶
func (_c *MockEvaluationService_Ready_Call) Run(run func()) *MockEvaluationService_Ready_Call
func (*MockEvaluationService_Ready_Call) RunAndReturn ¶
func (_c *MockEvaluationService_Ready_Call) RunAndReturn(run func() bool) *MockEvaluationService_Ready_Call
type MockInfoService ¶
MockInfoService is an autogenerated mock type for the InfoService type
func NewMockInfoService ¶
func NewMockInfoService(t interface {
mock.TestingT
Cleanup(func())
}) *MockInfoService
NewMockInfoService creates a new instance of MockInfoService. 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 (*MockInfoService) EXPECT ¶
func (_m *MockInfoService) EXPECT() *MockInfoService_Expecter
func (*MockInfoService) GetAppInfo ¶
GetAppInfo provides a mock function with given fields: _a0
func (*MockInfoService) GetAppInfoResponse ¶
GetAppInfoResponse provides a mock function with given fields: _a0
func (*MockInfoService) Ready ¶
func (_m *MockInfoService) Ready() bool
Ready provides a mock function with no fields
type MockInfoService_Expecter ¶
type MockInfoService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockInfoService_Expecter) GetAppInfo ¶
func (_e *MockInfoService_Expecter) GetAppInfo(_a0 interface{}) *MockInfoService_GetAppInfo_Call
GetAppInfo is a helper method to define mock.On call
- _a0 context.Context
func (*MockInfoService_Expecter) GetAppInfoResponse ¶
func (_e *MockInfoService_Expecter) GetAppInfoResponse(_a0 interface{}) *MockInfoService_GetAppInfoResponse_Call
GetAppInfoResponse is a helper method to define mock.On call
- _a0 context.Context
func (*MockInfoService_Expecter) Ready ¶
func (_e *MockInfoService_Expecter) Ready() *MockInfoService_Ready_Call
Ready is a helper method to define mock.On call
type MockInfoService_GetAppInfoResponse_Call ¶
MockInfoService_GetAppInfoResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAppInfoResponse'
func (*MockInfoService_GetAppInfoResponse_Call) Return ¶
func (_c *MockInfoService_GetAppInfoResponse_Call) Return(_a0 *entities.App, _a1 error) *MockInfoService_GetAppInfoResponse_Call
func (*MockInfoService_GetAppInfoResponse_Call) Run ¶
func (_c *MockInfoService_GetAppInfoResponse_Call) Run(run func(_a0 context.Context)) *MockInfoService_GetAppInfoResponse_Call
func (*MockInfoService_GetAppInfoResponse_Call) RunAndReturn ¶
func (_c *MockInfoService_GetAppInfoResponse_Call) RunAndReturn(run func(context.Context) (*entities.App, error)) *MockInfoService_GetAppInfoResponse_Call
type MockInfoService_GetAppInfo_Call ¶
MockInfoService_GetAppInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAppInfo'
func (*MockInfoService_GetAppInfo_Call) Return ¶
func (_c *MockInfoService_GetAppInfo_Call) Return(_a0 *entities.App, _a1 error) *MockInfoService_GetAppInfo_Call
func (*MockInfoService_GetAppInfo_Call) Run ¶
func (_c *MockInfoService_GetAppInfo_Call) Run(run func(_a0 context.Context)) *MockInfoService_GetAppInfo_Call
func (*MockInfoService_GetAppInfo_Call) RunAndReturn ¶
func (_c *MockInfoService_GetAppInfo_Call) RunAndReturn(run func(context.Context) (*entities.App, error)) *MockInfoService_GetAppInfo_Call
type MockInfoService_Ready_Call ¶
MockInfoService_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockInfoService_Ready_Call) Return ¶
func (_c *MockInfoService_Ready_Call) Return(_a0 bool) *MockInfoService_Ready_Call
func (*MockInfoService_Ready_Call) Run ¶
func (_c *MockInfoService_Ready_Call) Run(run func()) *MockInfoService_Ready_Call
func (*MockInfoService_Ready_Call) RunAndReturn ¶
func (_c *MockInfoService_Ready_Call) RunAndReturn(run func() bool) *MockInfoService_Ready_Call
type MockPluginService ¶
MockPluginService is an autogenerated mock type for the PluginService type
func NewMockPluginService ¶
func NewMockPluginService(t interface {
mock.TestingT
Cleanup(func())
}) *MockPluginService
NewMockPluginService creates a new instance of MockPluginService. 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 (*MockPluginService) EXPECT ¶
func (_m *MockPluginService) EXPECT() *MockPluginService_Expecter
func (*MockPluginService) HeartBeat ¶
func (_m *MockPluginService) HeartBeat(ctx context.Context, slug string) error
HeartBeat provides a mock function with given fields: ctx, slug
func (*MockPluginService) Ready ¶
func (_m *MockPluginService) Ready() bool
Ready provides a mock function with no fields
func (*MockPluginService) RefreshToken ¶
func (_m *MockPluginService) RefreshToken(ctx context.Context, auth *entities.AuthPlugin, slug string) (*entities.ClientToken, error)
RefreshToken provides a mock function with given fields: ctx, auth, slug
func (*MockPluginService) Register ¶
func (_m *MockPluginService) Register(ctx context.Context, plugin *entities.Plugin) (*entities.ClientToken, error)
Register provides a mock function with given fields: ctx, plugin
func (*MockPluginService) StartCleanup ¶
func (_m *MockPluginService) StartCleanup(ctx context.Context)
StartCleanup provides a mock function with given fields: ctx
func (*MockPluginService) Unregister ¶
func (_m *MockPluginService) Unregister(ctx context.Context, slug string)
Unregister provides a mock function with given fields: ctx, slug
type MockPluginService_Expecter ¶
type MockPluginService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPluginService_Expecter) Get ¶
func (_e *MockPluginService_Expecter) Get(ctx interface{}, slug interface{}) *MockPluginService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- slug string
func (*MockPluginService_Expecter) GetAll ¶
func (_e *MockPluginService_Expecter) GetAll(ctx interface{}) *MockPluginService_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
func (*MockPluginService_Expecter) HeartBeat ¶
func (_e *MockPluginService_Expecter) HeartBeat(ctx interface{}, slug interface{}) *MockPluginService_HeartBeat_Call
HeartBeat is a helper method to define mock.On call
- ctx context.Context
- slug string
func (*MockPluginService_Expecter) Ready ¶
func (_e *MockPluginService_Expecter) Ready() *MockPluginService_Ready_Call
Ready is a helper method to define mock.On call
func (*MockPluginService_Expecter) RefreshToken ¶
func (_e *MockPluginService_Expecter) RefreshToken(ctx interface{}, auth interface{}, slug interface{}) *MockPluginService_RefreshToken_Call
RefreshToken is a helper method to define mock.On call
- ctx context.Context
- auth *entities.AuthPlugin
- slug string
func (*MockPluginService_Expecter) Register ¶
func (_e *MockPluginService_Expecter) Register(ctx interface{}, plugin interface{}) *MockPluginService_Register_Call
Register is a helper method to define mock.On call
- ctx context.Context
- plugin *entities.Plugin
func (*MockPluginService_Expecter) StartCleanup ¶
func (_e *MockPluginService_Expecter) StartCleanup(ctx interface{}) *MockPluginService_StartCleanup_Call
StartCleanup is a helper method to define mock.On call
- ctx context.Context
func (*MockPluginService_Expecter) Unregister ¶
func (_e *MockPluginService_Expecter) Unregister(ctx interface{}, slug interface{}) *MockPluginService_Unregister_Call
Unregister is a helper method to define mock.On call
- ctx context.Context
- slug string
type MockPluginService_GetAll_Call ¶
MockPluginService_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockPluginService_GetAll_Call) Return ¶
func (_c *MockPluginService_GetAll_Call) Return(_a0 []entities.Plugin, _a1 []time.Time) *MockPluginService_GetAll_Call
func (*MockPluginService_GetAll_Call) Run ¶
func (_c *MockPluginService_GetAll_Call) Run(run func(ctx context.Context)) *MockPluginService_GetAll_Call
func (*MockPluginService_GetAll_Call) RunAndReturn ¶
func (_c *MockPluginService_GetAll_Call) RunAndReturn(run func(context.Context) ([]entities.Plugin, []time.Time)) *MockPluginService_GetAll_Call
type MockPluginService_Get_Call ¶
MockPluginService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockPluginService_Get_Call) Return ¶
func (_c *MockPluginService_Get_Call) Return(_a0 entities.Plugin, _a1 error) *MockPluginService_Get_Call
func (*MockPluginService_Get_Call) Run ¶
func (_c *MockPluginService_Get_Call) Run(run func(ctx context.Context, slug string)) *MockPluginService_Get_Call
func (*MockPluginService_Get_Call) RunAndReturn ¶
func (_c *MockPluginService_Get_Call) RunAndReturn(run func(context.Context, string) (entities.Plugin, error)) *MockPluginService_Get_Call
type MockPluginService_HeartBeat_Call ¶
MockPluginService_HeartBeat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeartBeat'
func (*MockPluginService_HeartBeat_Call) Return ¶
func (_c *MockPluginService_HeartBeat_Call) Return(_a0 error) *MockPluginService_HeartBeat_Call
func (*MockPluginService_HeartBeat_Call) Run ¶
func (_c *MockPluginService_HeartBeat_Call) Run(run func(ctx context.Context, slug string)) *MockPluginService_HeartBeat_Call
func (*MockPluginService_HeartBeat_Call) RunAndReturn ¶
func (_c *MockPluginService_HeartBeat_Call) RunAndReturn(run func(context.Context, string) error) *MockPluginService_HeartBeat_Call
type MockPluginService_Ready_Call ¶
MockPluginService_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockPluginService_Ready_Call) Return ¶
func (_c *MockPluginService_Ready_Call) Return(_a0 bool) *MockPluginService_Ready_Call
func (*MockPluginService_Ready_Call) Run ¶
func (_c *MockPluginService_Ready_Call) Run(run func()) *MockPluginService_Ready_Call
func (*MockPluginService_Ready_Call) RunAndReturn ¶
func (_c *MockPluginService_Ready_Call) RunAndReturn(run func() bool) *MockPluginService_Ready_Call
type MockPluginService_RefreshToken_Call ¶
MockPluginService_RefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshToken'
func (*MockPluginService_RefreshToken_Call) Return ¶
func (_c *MockPluginService_RefreshToken_Call) Return(_a0 *entities.ClientToken, _a1 error) *MockPluginService_RefreshToken_Call
func (*MockPluginService_RefreshToken_Call) Run ¶
func (_c *MockPluginService_RefreshToken_Call) Run(run func(ctx context.Context, auth *entities.AuthPlugin, slug string)) *MockPluginService_RefreshToken_Call
func (*MockPluginService_RefreshToken_Call) RunAndReturn ¶
func (_c *MockPluginService_RefreshToken_Call) RunAndReturn(run func(context.Context, *entities.AuthPlugin, string) (*entities.ClientToken, error)) *MockPluginService_RefreshToken_Call
type MockPluginService_Register_Call ¶
MockPluginService_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*MockPluginService_Register_Call) Return ¶
func (_c *MockPluginService_Register_Call) Return(_a0 *entities.ClientToken, _a1 error) *MockPluginService_Register_Call
func (*MockPluginService_Register_Call) Run ¶
func (_c *MockPluginService_Register_Call) Run(run func(ctx context.Context, plugin *entities.Plugin)) *MockPluginService_Register_Call
func (*MockPluginService_Register_Call) RunAndReturn ¶
func (_c *MockPluginService_Register_Call) RunAndReturn(run func(context.Context, *entities.Plugin) (*entities.ClientToken, error)) *MockPluginService_Register_Call
type MockPluginService_StartCleanup_Call ¶
MockPluginService_StartCleanup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartCleanup'
func (*MockPluginService_StartCleanup_Call) Return ¶
func (_c *MockPluginService_StartCleanup_Call) Return() *MockPluginService_StartCleanup_Call
func (*MockPluginService_StartCleanup_Call) Run ¶
func (_c *MockPluginService_StartCleanup_Call) Run(run func(ctx context.Context)) *MockPluginService_StartCleanup_Call
func (*MockPluginService_StartCleanup_Call) RunAndReturn ¶
func (_c *MockPluginService_StartCleanup_Call) RunAndReturn(run func(context.Context)) *MockPluginService_StartCleanup_Call
type MockPluginService_Unregister_Call ¶
MockPluginService_Unregister_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unregister'
func (*MockPluginService_Unregister_Call) Return ¶
func (_c *MockPluginService_Unregister_Call) Return() *MockPluginService_Unregister_Call
func (*MockPluginService_Unregister_Call) Run ¶
func (_c *MockPluginService_Unregister_Call) Run(run func(ctx context.Context, slug string)) *MockPluginService_Unregister_Call
func (*MockPluginService_Unregister_Call) RunAndReturn ¶
func (_c *MockPluginService_Unregister_Call) RunAndReturn(run func(context.Context, string)) *MockPluginService_Unregister_Call
type MockRegionService ¶
MockRegionService is an autogenerated mock type for the RegionService type
func NewMockRegionService ¶
func NewMockRegionService(t interface {
mock.TestingT
Cleanup(func())
}) *MockRegionService
NewMockRegionService creates a new instance of MockRegionService. 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 (*MockRegionService) EXPECT ¶
func (_m *MockRegionService) EXPECT() *MockRegionService_Expecter
func (*MockRegionService) Ready ¶
func (_m *MockRegionService) Ready() bool
Ready provides a mock function with no fields
type MockRegionService_Expecter ¶
type MockRegionService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRegionService_Expecter) GetAll ¶
func (_e *MockRegionService_Expecter) GetAll(ctx interface{}) *MockRegionService_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
func (*MockRegionService_Expecter) GetByID ¶
func (_e *MockRegionService_Expecter) GetByID(ctx interface{}, id interface{}) *MockRegionService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id int32
func (*MockRegionService_Expecter) Ready ¶
func (_e *MockRegionService_Expecter) Ready() *MockRegionService_Ready_Call
Ready is a helper method to define mock.On call
type MockRegionService_GetAll_Call ¶
MockRegionService_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockRegionService_GetAll_Call) Return ¶
func (_c *MockRegionService_GetAll_Call) Return(_a0 []*entities.Region, _a1 int64, _a2 error) *MockRegionService_GetAll_Call
func (*MockRegionService_GetAll_Call) Run ¶
func (_c *MockRegionService_GetAll_Call) Run(run func(ctx context.Context)) *MockRegionService_GetAll_Call
func (*MockRegionService_GetAll_Call) RunAndReturn ¶
func (_c *MockRegionService_GetAll_Call) RunAndReturn(run func(context.Context) ([]*entities.Region, int64, error)) *MockRegionService_GetAll_Call
type MockRegionService_GetByID_Call ¶
MockRegionService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*MockRegionService_GetByID_Call) Return ¶
func (_c *MockRegionService_GetByID_Call) Return(_a0 *entities.Region, _a1 error) *MockRegionService_GetByID_Call
func (*MockRegionService_GetByID_Call) Run ¶
func (_c *MockRegionService_GetByID_Call) Run(run func(ctx context.Context, id int32)) *MockRegionService_GetByID_Call
func (*MockRegionService_GetByID_Call) RunAndReturn ¶
func (_c *MockRegionService_GetByID_Call) RunAndReturn(run func(context.Context, int32) (*entities.Region, error)) *MockRegionService_GetByID_Call
type MockRegionService_Ready_Call ¶
MockRegionService_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockRegionService_Ready_Call) Return ¶
func (_c *MockRegionService_Ready_Call) Return(_a0 bool) *MockRegionService_Ready_Call
func (*MockRegionService_Ready_Call) Run ¶
func (_c *MockRegionService_Ready_Call) Run(run func()) *MockRegionService_Ready_Call
func (*MockRegionService_Ready_Call) RunAndReturn ¶
func (_c *MockRegionService_Ready_Call) RunAndReturn(run func() bool) *MockRegionService_Ready_Call
type MockSensorService ¶
MockSensorService is an autogenerated mock type for the SensorService type
func NewMockSensorService ¶
func NewMockSensorService(t interface {
mock.TestingT
Cleanup(func())
}) *MockSensorService
NewMockSensorService creates a new instance of MockSensorService. 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 (*MockSensorService) Create ¶
func (_m *MockSensorService) Create(ctx context.Context, createData *entities.SensorCreate) (*entities.Sensor, error)
Create provides a mock function with given fields: ctx, createData
func (*MockSensorService) Delete ¶
func (_m *MockSensorService) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*MockSensorService) EXPECT ¶
func (_m *MockSensorService) EXPECT() *MockSensorService_Expecter
func (*MockSensorService) GetAll ¶
func (_m *MockSensorService) GetAll(ctx context.Context, query entities.Query) ([]*entities.Sensor, int64, error)
GetAll provides a mock function with given fields: ctx, query
func (*MockSensorService) GetAllDataByID ¶
func (_m *MockSensorService) GetAllDataByID(ctx context.Context, id string) ([]*entities.SensorData, error)
GetAllDataByID provides a mock function with given fields: ctx, id
func (*MockSensorService) HandleMessage ¶
func (_m *MockSensorService) HandleMessage(ctx context.Context, payload *entities.MqttPayload) (*entities.SensorData, error)
HandleMessage provides a mock function with given fields: ctx, payload
func (*MockSensorService) MapSensorToTree ¶
MapSensorToTree provides a mock function with given fields: ctx, sen
func (*MockSensorService) Ready ¶
func (_m *MockSensorService) Ready() bool
Ready provides a mock function with no fields
func (*MockSensorService) Update ¶
func (_m *MockSensorService) Update(ctx context.Context, id string, updateData *entities.SensorUpdate) (*entities.Sensor, error)
Update provides a mock function with given fields: ctx, id, updateData
func (*MockSensorService) UpdateStatuses ¶
func (_m *MockSensorService) UpdateStatuses(ctx context.Context) error
UpdateStatuses provides a mock function with given fields: ctx
type MockSensorService_Create_Call ¶
MockSensorService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockSensorService_Create_Call) Return ¶
func (_c *MockSensorService_Create_Call) Return(_a0 *entities.Sensor, _a1 error) *MockSensorService_Create_Call
func (*MockSensorService_Create_Call) Run ¶
func (_c *MockSensorService_Create_Call) Run(run func(ctx context.Context, createData *entities.SensorCreate)) *MockSensorService_Create_Call
func (*MockSensorService_Create_Call) RunAndReturn ¶
func (_c *MockSensorService_Create_Call) RunAndReturn(run func(context.Context, *entities.SensorCreate) (*entities.Sensor, error)) *MockSensorService_Create_Call
type MockSensorService_Delete_Call ¶
MockSensorService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockSensorService_Delete_Call) Return ¶
func (_c *MockSensorService_Delete_Call) Return(_a0 error) *MockSensorService_Delete_Call
func (*MockSensorService_Delete_Call) Run ¶
func (_c *MockSensorService_Delete_Call) Run(run func(ctx context.Context, id string)) *MockSensorService_Delete_Call
func (*MockSensorService_Delete_Call) RunAndReturn ¶
func (_c *MockSensorService_Delete_Call) RunAndReturn(run func(context.Context, string) error) *MockSensorService_Delete_Call
type MockSensorService_Expecter ¶
type MockSensorService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSensorService_Expecter) Create ¶
func (_e *MockSensorService_Expecter) Create(ctx interface{}, createData interface{}) *MockSensorService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- createData *entities.SensorCreate
func (*MockSensorService_Expecter) Delete ¶
func (_e *MockSensorService_Expecter) Delete(ctx interface{}, id interface{}) *MockSensorService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*MockSensorService_Expecter) GetAll ¶
func (_e *MockSensorService_Expecter) GetAll(ctx interface{}, query interface{}) *MockSensorService_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
- query entities.Query
func (*MockSensorService_Expecter) GetAllDataByID ¶
func (_e *MockSensorService_Expecter) GetAllDataByID(ctx interface{}, id interface{}) *MockSensorService_GetAllDataByID_Call
GetAllDataByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*MockSensorService_Expecter) GetByID ¶
func (_e *MockSensorService_Expecter) GetByID(ctx interface{}, id interface{}) *MockSensorService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*MockSensorService_Expecter) HandleMessage ¶
func (_e *MockSensorService_Expecter) HandleMessage(ctx interface{}, payload interface{}) *MockSensorService_HandleMessage_Call
HandleMessage is a helper method to define mock.On call
- ctx context.Context
- payload *entities.MqttPayload
func (*MockSensorService_Expecter) MapSensorToTree ¶
func (_e *MockSensorService_Expecter) MapSensorToTree(ctx interface{}, sen interface{}) *MockSensorService_MapSensorToTree_Call
MapSensorToTree is a helper method to define mock.On call
- ctx context.Context
- sen *entities.Sensor
func (*MockSensorService_Expecter) Ready ¶
func (_e *MockSensorService_Expecter) Ready() *MockSensorService_Ready_Call
Ready is a helper method to define mock.On call
func (*MockSensorService_Expecter) Update ¶
func (_e *MockSensorService_Expecter) Update(ctx interface{}, id interface{}, updateData interface{}) *MockSensorService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id string
- updateData *entities.SensorUpdate
func (*MockSensorService_Expecter) UpdateStatuses ¶
func (_e *MockSensorService_Expecter) UpdateStatuses(ctx interface{}) *MockSensorService_UpdateStatuses_Call
UpdateStatuses is a helper method to define mock.On call
- ctx context.Context
type MockSensorService_GetAllDataByID_Call ¶
MockSensorService_GetAllDataByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllDataByID'
func (*MockSensorService_GetAllDataByID_Call) Return ¶
func (_c *MockSensorService_GetAllDataByID_Call) Return(_a0 []*entities.SensorData, _a1 error) *MockSensorService_GetAllDataByID_Call
func (*MockSensorService_GetAllDataByID_Call) Run ¶
func (_c *MockSensorService_GetAllDataByID_Call) Run(run func(ctx context.Context, id string)) *MockSensorService_GetAllDataByID_Call
func (*MockSensorService_GetAllDataByID_Call) RunAndReturn ¶
func (_c *MockSensorService_GetAllDataByID_Call) RunAndReturn(run func(context.Context, string) ([]*entities.SensorData, error)) *MockSensorService_GetAllDataByID_Call
type MockSensorService_GetAll_Call ¶
MockSensorService_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockSensorService_GetAll_Call) Return ¶
func (_c *MockSensorService_GetAll_Call) Return(_a0 []*entities.Sensor, _a1 int64, _a2 error) *MockSensorService_GetAll_Call
func (*MockSensorService_GetAll_Call) Run ¶
func (_c *MockSensorService_GetAll_Call) Run(run func(ctx context.Context, query entities.Query)) *MockSensorService_GetAll_Call
func (*MockSensorService_GetAll_Call) RunAndReturn ¶
func (_c *MockSensorService_GetAll_Call) RunAndReturn(run func(context.Context, entities.Query) ([]*entities.Sensor, int64, error)) *MockSensorService_GetAll_Call
type MockSensorService_GetByID_Call ¶
MockSensorService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*MockSensorService_GetByID_Call) Return ¶
func (_c *MockSensorService_GetByID_Call) Return(_a0 *entities.Sensor, _a1 error) *MockSensorService_GetByID_Call
func (*MockSensorService_GetByID_Call) Run ¶
func (_c *MockSensorService_GetByID_Call) Run(run func(ctx context.Context, id string)) *MockSensorService_GetByID_Call
func (*MockSensorService_GetByID_Call) RunAndReturn ¶
func (_c *MockSensorService_GetByID_Call) RunAndReturn(run func(context.Context, string) (*entities.Sensor, error)) *MockSensorService_GetByID_Call
type MockSensorService_HandleMessage_Call ¶
MockSensorService_HandleMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleMessage'
func (*MockSensorService_HandleMessage_Call) Return ¶
func (_c *MockSensorService_HandleMessage_Call) Return(_a0 *entities.SensorData, _a1 error) *MockSensorService_HandleMessage_Call
func (*MockSensorService_HandleMessage_Call) Run ¶
func (_c *MockSensorService_HandleMessage_Call) Run(run func(ctx context.Context, payload *entities.MqttPayload)) *MockSensorService_HandleMessage_Call
func (*MockSensorService_HandleMessage_Call) RunAndReturn ¶
func (_c *MockSensorService_HandleMessage_Call) RunAndReturn(run func(context.Context, *entities.MqttPayload) (*entities.SensorData, error)) *MockSensorService_HandleMessage_Call
type MockSensorService_MapSensorToTree_Call ¶
MockSensorService_MapSensorToTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MapSensorToTree'
func (*MockSensorService_MapSensorToTree_Call) Return ¶
func (_c *MockSensorService_MapSensorToTree_Call) Return(_a0 error) *MockSensorService_MapSensorToTree_Call
func (*MockSensorService_MapSensorToTree_Call) Run ¶
func (_c *MockSensorService_MapSensorToTree_Call) Run(run func(ctx context.Context, sen *entities.Sensor)) *MockSensorService_MapSensorToTree_Call
func (*MockSensorService_MapSensorToTree_Call) RunAndReturn ¶
func (_c *MockSensorService_MapSensorToTree_Call) RunAndReturn(run func(context.Context, *entities.Sensor) error) *MockSensorService_MapSensorToTree_Call
type MockSensorService_Ready_Call ¶
MockSensorService_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockSensorService_Ready_Call) Return ¶
func (_c *MockSensorService_Ready_Call) Return(_a0 bool) *MockSensorService_Ready_Call
func (*MockSensorService_Ready_Call) Run ¶
func (_c *MockSensorService_Ready_Call) Run(run func()) *MockSensorService_Ready_Call
func (*MockSensorService_Ready_Call) RunAndReturn ¶
func (_c *MockSensorService_Ready_Call) RunAndReturn(run func() bool) *MockSensorService_Ready_Call
type MockSensorService_UpdateStatuses_Call ¶
MockSensorService_UpdateStatuses_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStatuses'
func (*MockSensorService_UpdateStatuses_Call) Return ¶
func (_c *MockSensorService_UpdateStatuses_Call) Return(_a0 error) *MockSensorService_UpdateStatuses_Call
func (*MockSensorService_UpdateStatuses_Call) Run ¶
func (_c *MockSensorService_UpdateStatuses_Call) Run(run func(ctx context.Context)) *MockSensorService_UpdateStatuses_Call
func (*MockSensorService_UpdateStatuses_Call) RunAndReturn ¶
func (_c *MockSensorService_UpdateStatuses_Call) RunAndReturn(run func(context.Context) error) *MockSensorService_UpdateStatuses_Call
type MockSensorService_Update_Call ¶
MockSensorService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockSensorService_Update_Call) Return ¶
func (_c *MockSensorService_Update_Call) Return(_a0 *entities.Sensor, _a1 error) *MockSensorService_Update_Call
func (*MockSensorService_Update_Call) Run ¶
func (_c *MockSensorService_Update_Call) Run(run func(ctx context.Context, id string, updateData *entities.SensorUpdate)) *MockSensorService_Update_Call
func (*MockSensorService_Update_Call) RunAndReturn ¶
func (_c *MockSensorService_Update_Call) RunAndReturn(run func(context.Context, string, *entities.SensorUpdate) (*entities.Sensor, error)) *MockSensorService_Update_Call
type MockService ¶
MockService is an autogenerated mock type for the Service type
func NewMockService ¶
func NewMockService(t interface {
mock.TestingT
Cleanup(func())
}) *MockService
NewMockService creates a new instance of MockService. 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 (*MockService) EXPECT ¶
func (_m *MockService) EXPECT() *MockService_Expecter
func (*MockService) Ready ¶
func (_m *MockService) Ready() bool
Ready provides a mock function with no fields
type MockService_Expecter ¶
type MockService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockService_Expecter) Ready ¶
func (_e *MockService_Expecter) Ready() *MockService_Ready_Call
Ready is a helper method to define mock.On call
type MockService_Ready_Call ¶
MockService_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockService_Ready_Call) Return ¶
func (_c *MockService_Ready_Call) Return(_a0 bool) *MockService_Ready_Call
func (*MockService_Ready_Call) Run ¶
func (_c *MockService_Ready_Call) Run(run func()) *MockService_Ready_Call
func (*MockService_Ready_Call) RunAndReturn ¶
func (_c *MockService_Ready_Call) RunAndReturn(run func() bool) *MockService_Ready_Call
type MockServicesInterface ¶
MockServicesInterface is an autogenerated mock type for the ServicesInterface type
func NewMockServicesInterface ¶
func NewMockServicesInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockServicesInterface
NewMockServicesInterface creates a new instance of MockServicesInterface. 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 (*MockServicesInterface) AllServicesReady ¶
func (_m *MockServicesInterface) AllServicesReady() bool
AllServicesReady provides a mock function with no fields
func (*MockServicesInterface) EXPECT ¶
func (_m *MockServicesInterface) EXPECT() *MockServicesInterface_Expecter
type MockServicesInterface_AllServicesReady_Call ¶
MockServicesInterface_AllServicesReady_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllServicesReady'
func (*MockServicesInterface_AllServicesReady_Call) Return ¶
func (_c *MockServicesInterface_AllServicesReady_Call) Return(_a0 bool) *MockServicesInterface_AllServicesReady_Call
func (*MockServicesInterface_AllServicesReady_Call) Run ¶
func (_c *MockServicesInterface_AllServicesReady_Call) Run(run func()) *MockServicesInterface_AllServicesReady_Call
func (*MockServicesInterface_AllServicesReady_Call) RunAndReturn ¶
func (_c *MockServicesInterface_AllServicesReady_Call) RunAndReturn(run func() bool) *MockServicesInterface_AllServicesReady_Call
type MockServicesInterface_Expecter ¶
type MockServicesInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockServicesInterface_Expecter) AllServicesReady ¶
func (_e *MockServicesInterface_Expecter) AllServicesReady() *MockServicesInterface_AllServicesReady_Call
AllServicesReady is a helper method to define mock.On call
type MockTreeClusterService ¶
MockTreeClusterService is an autogenerated mock type for the TreeClusterService type
func NewMockTreeClusterService ¶
func NewMockTreeClusterService(t interface {
mock.TestingT
Cleanup(func())
}) *MockTreeClusterService
NewMockTreeClusterService creates a new instance of MockTreeClusterService. 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 (*MockTreeClusterService) Create ¶
func (_m *MockTreeClusterService) Create(ctx context.Context, createData *entities.TreeClusterCreate) (*entities.TreeCluster, error)
Create provides a mock function with given fields: ctx, createData
func (*MockTreeClusterService) Delete ¶
func (_m *MockTreeClusterService) Delete(ctx context.Context, id int32) error
Delete provides a mock function with given fields: ctx, id
func (*MockTreeClusterService) EXPECT ¶
func (_m *MockTreeClusterService) EXPECT() *MockTreeClusterService_Expecter
func (*MockTreeClusterService) GetAll ¶
func (_m *MockTreeClusterService) GetAll(ctx context.Context, query entities.TreeClusterQuery) ([]*entities.TreeCluster, int64, error)
GetAll provides a mock function with given fields: ctx, query
func (*MockTreeClusterService) GetByID ¶
func (_m *MockTreeClusterService) GetByID(ctx context.Context, id int32) (*entities.TreeCluster, error)
GetByID provides a mock function with given fields: ctx, id
func (*MockTreeClusterService) HandleCreateTree ¶
func (_m *MockTreeClusterService) HandleCreateTree(_a0 context.Context, _a1 *entities.EventCreateTree) error
HandleCreateTree provides a mock function with given fields: _a0, _a1
func (*MockTreeClusterService) HandleDeleteTree ¶
func (_m *MockTreeClusterService) HandleDeleteTree(_a0 context.Context, _a1 *entities.EventDeleteTree) error
HandleDeleteTree provides a mock function with given fields: _a0, _a1
func (*MockTreeClusterService) HandleNewSensorData ¶
func (_m *MockTreeClusterService) HandleNewSensorData(_a0 context.Context, _a1 *entities.EventNewSensorData) error
HandleNewSensorData provides a mock function with given fields: _a0, _a1
func (*MockTreeClusterService) HandleUpdateTree ¶
func (_m *MockTreeClusterService) HandleUpdateTree(_a0 context.Context, _a1 *entities.EventUpdateTree) error
HandleUpdateTree provides a mock function with given fields: _a0, _a1
func (*MockTreeClusterService) HandleUpdateWateringPlan ¶
func (_m *MockTreeClusterService) HandleUpdateWateringPlan(_a0 context.Context, _a1 *entities.EventUpdateWateringPlan) error
HandleUpdateWateringPlan provides a mock function with given fields: _a0, _a1
func (*MockTreeClusterService) Ready ¶
func (_m *MockTreeClusterService) Ready() bool
Ready provides a mock function with no fields
func (*MockTreeClusterService) Update ¶
func (_m *MockTreeClusterService) Update(ctx context.Context, id int32, updateData *entities.TreeClusterUpdate) (*entities.TreeCluster, error)
Update provides a mock function with given fields: ctx, id, updateData
func (*MockTreeClusterService) UpdateWateringStatuses ¶
func (_m *MockTreeClusterService) UpdateWateringStatuses(ctx context.Context) error
UpdateWateringStatuses provides a mock function with given fields: ctx
type MockTreeClusterService_Create_Call ¶
MockTreeClusterService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockTreeClusterService_Create_Call) Return ¶
func (_c *MockTreeClusterService_Create_Call) Return(_a0 *entities.TreeCluster, _a1 error) *MockTreeClusterService_Create_Call
func (*MockTreeClusterService_Create_Call) Run ¶
func (_c *MockTreeClusterService_Create_Call) Run(run func(ctx context.Context, createData *entities.TreeClusterCreate)) *MockTreeClusterService_Create_Call
func (*MockTreeClusterService_Create_Call) RunAndReturn ¶
func (_c *MockTreeClusterService_Create_Call) RunAndReturn(run func(context.Context, *entities.TreeClusterCreate) (*entities.TreeCluster, error)) *MockTreeClusterService_Create_Call
type MockTreeClusterService_Delete_Call ¶
MockTreeClusterService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockTreeClusterService_Delete_Call) Return ¶
func (_c *MockTreeClusterService_Delete_Call) Return(_a0 error) *MockTreeClusterService_Delete_Call
func (*MockTreeClusterService_Delete_Call) Run ¶
func (_c *MockTreeClusterService_Delete_Call) Run(run func(ctx context.Context, id int32)) *MockTreeClusterService_Delete_Call
func (*MockTreeClusterService_Delete_Call) RunAndReturn ¶
func (_c *MockTreeClusterService_Delete_Call) RunAndReturn(run func(context.Context, int32) error) *MockTreeClusterService_Delete_Call
type MockTreeClusterService_Expecter ¶
type MockTreeClusterService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTreeClusterService_Expecter) Create ¶
func (_e *MockTreeClusterService_Expecter) Create(ctx interface{}, createData interface{}) *MockTreeClusterService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- createData *entities.TreeClusterCreate
func (*MockTreeClusterService_Expecter) Delete ¶
func (_e *MockTreeClusterService_Expecter) Delete(ctx interface{}, id interface{}) *MockTreeClusterService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id int32
func (*MockTreeClusterService_Expecter) GetAll ¶
func (_e *MockTreeClusterService_Expecter) GetAll(ctx interface{}, query interface{}) *MockTreeClusterService_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
- query entities.TreeClusterQuery
func (*MockTreeClusterService_Expecter) GetByID ¶
func (_e *MockTreeClusterService_Expecter) GetByID(ctx interface{}, id interface{}) *MockTreeClusterService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id int32
func (*MockTreeClusterService_Expecter) HandleCreateTree ¶
func (_e *MockTreeClusterService_Expecter) HandleCreateTree(_a0 interface{}, _a1 interface{}) *MockTreeClusterService_HandleCreateTree_Call
HandleCreateTree is a helper method to define mock.On call
- _a0 context.Context
- _a1 *entities.EventCreateTree
func (*MockTreeClusterService_Expecter) HandleDeleteTree ¶
func (_e *MockTreeClusterService_Expecter) HandleDeleteTree(_a0 interface{}, _a1 interface{}) *MockTreeClusterService_HandleDeleteTree_Call
HandleDeleteTree is a helper method to define mock.On call
- _a0 context.Context
- _a1 *entities.EventDeleteTree
func (*MockTreeClusterService_Expecter) HandleNewSensorData ¶
func (_e *MockTreeClusterService_Expecter) HandleNewSensorData(_a0 interface{}, _a1 interface{}) *MockTreeClusterService_HandleNewSensorData_Call
HandleNewSensorData is a helper method to define mock.On call
- _a0 context.Context
- _a1 *entities.EventNewSensorData
func (*MockTreeClusterService_Expecter) HandleUpdateTree ¶
func (_e *MockTreeClusterService_Expecter) HandleUpdateTree(_a0 interface{}, _a1 interface{}) *MockTreeClusterService_HandleUpdateTree_Call
HandleUpdateTree is a helper method to define mock.On call
- _a0 context.Context
- _a1 *entities.EventUpdateTree
func (*MockTreeClusterService_Expecter) HandleUpdateWateringPlan ¶
func (_e *MockTreeClusterService_Expecter) HandleUpdateWateringPlan(_a0 interface{}, _a1 interface{}) *MockTreeClusterService_HandleUpdateWateringPlan_Call
HandleUpdateWateringPlan is a helper method to define mock.On call
- _a0 context.Context
- _a1 *entities.EventUpdateWateringPlan
func (*MockTreeClusterService_Expecter) Ready ¶
func (_e *MockTreeClusterService_Expecter) Ready() *MockTreeClusterService_Ready_Call
Ready is a helper method to define mock.On call
func (*MockTreeClusterService_Expecter) Update ¶
func (_e *MockTreeClusterService_Expecter) Update(ctx interface{}, id interface{}, updateData interface{}) *MockTreeClusterService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id int32
- updateData *entities.TreeClusterUpdate
func (*MockTreeClusterService_Expecter) UpdateWateringStatuses ¶
func (_e *MockTreeClusterService_Expecter) UpdateWateringStatuses(ctx interface{}) *MockTreeClusterService_UpdateWateringStatuses_Call
UpdateWateringStatuses is a helper method to define mock.On call
- ctx context.Context
type MockTreeClusterService_GetAll_Call ¶
MockTreeClusterService_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockTreeClusterService_GetAll_Call) Return ¶
func (_c *MockTreeClusterService_GetAll_Call) Return(_a0 []*entities.TreeCluster, _a1 int64, _a2 error) *MockTreeClusterService_GetAll_Call
func (*MockTreeClusterService_GetAll_Call) Run ¶
func (_c *MockTreeClusterService_GetAll_Call) Run(run func(ctx context.Context, query entities.TreeClusterQuery)) *MockTreeClusterService_GetAll_Call
func (*MockTreeClusterService_GetAll_Call) RunAndReturn ¶
func (_c *MockTreeClusterService_GetAll_Call) RunAndReturn(run func(context.Context, entities.TreeClusterQuery) ([]*entities.TreeCluster, int64, error)) *MockTreeClusterService_GetAll_Call
type MockTreeClusterService_GetByID_Call ¶
MockTreeClusterService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*MockTreeClusterService_GetByID_Call) Return ¶
func (_c *MockTreeClusterService_GetByID_Call) Return(_a0 *entities.TreeCluster, _a1 error) *MockTreeClusterService_GetByID_Call
func (*MockTreeClusterService_GetByID_Call) Run ¶
func (_c *MockTreeClusterService_GetByID_Call) Run(run func(ctx context.Context, id int32)) *MockTreeClusterService_GetByID_Call
func (*MockTreeClusterService_GetByID_Call) RunAndReturn ¶
func (_c *MockTreeClusterService_GetByID_Call) RunAndReturn(run func(context.Context, int32) (*entities.TreeCluster, error)) *MockTreeClusterService_GetByID_Call
type MockTreeClusterService_HandleCreateTree_Call ¶
MockTreeClusterService_HandleCreateTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleCreateTree'
func (*MockTreeClusterService_HandleCreateTree_Call) Return ¶
func (_c *MockTreeClusterService_HandleCreateTree_Call) Return(_a0 error) *MockTreeClusterService_HandleCreateTree_Call
func (*MockTreeClusterService_HandleCreateTree_Call) Run ¶
func (_c *MockTreeClusterService_HandleCreateTree_Call) Run(run func(_a0 context.Context, _a1 *entities.EventCreateTree)) *MockTreeClusterService_HandleCreateTree_Call
func (*MockTreeClusterService_HandleCreateTree_Call) RunAndReturn ¶
func (_c *MockTreeClusterService_HandleCreateTree_Call) RunAndReturn(run func(context.Context, *entities.EventCreateTree) error) *MockTreeClusterService_HandleCreateTree_Call
type MockTreeClusterService_HandleDeleteTree_Call ¶
MockTreeClusterService_HandleDeleteTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleDeleteTree'
func (*MockTreeClusterService_HandleDeleteTree_Call) Return ¶
func (_c *MockTreeClusterService_HandleDeleteTree_Call) Return(_a0 error) *MockTreeClusterService_HandleDeleteTree_Call
func (*MockTreeClusterService_HandleDeleteTree_Call) Run ¶
func (_c *MockTreeClusterService_HandleDeleteTree_Call) Run(run func(_a0 context.Context, _a1 *entities.EventDeleteTree)) *MockTreeClusterService_HandleDeleteTree_Call
func (*MockTreeClusterService_HandleDeleteTree_Call) RunAndReturn ¶
func (_c *MockTreeClusterService_HandleDeleteTree_Call) RunAndReturn(run func(context.Context, *entities.EventDeleteTree) error) *MockTreeClusterService_HandleDeleteTree_Call
type MockTreeClusterService_HandleNewSensorData_Call ¶
MockTreeClusterService_HandleNewSensorData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleNewSensorData'
func (*MockTreeClusterService_HandleNewSensorData_Call) Return ¶
func (_c *MockTreeClusterService_HandleNewSensorData_Call) Return(_a0 error) *MockTreeClusterService_HandleNewSensorData_Call
func (*MockTreeClusterService_HandleNewSensorData_Call) Run ¶
func (_c *MockTreeClusterService_HandleNewSensorData_Call) Run(run func(_a0 context.Context, _a1 *entities.EventNewSensorData)) *MockTreeClusterService_HandleNewSensorData_Call
func (*MockTreeClusterService_HandleNewSensorData_Call) RunAndReturn ¶
func (_c *MockTreeClusterService_HandleNewSensorData_Call) RunAndReturn(run func(context.Context, *entities.EventNewSensorData) error) *MockTreeClusterService_HandleNewSensorData_Call
type MockTreeClusterService_HandleUpdateTree_Call ¶
MockTreeClusterService_HandleUpdateTree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleUpdateTree'
func (*MockTreeClusterService_HandleUpdateTree_Call) Return ¶
func (_c *MockTreeClusterService_HandleUpdateTree_Call) Return(_a0 error) *MockTreeClusterService_HandleUpdateTree_Call
func (*MockTreeClusterService_HandleUpdateTree_Call) Run ¶
func (_c *MockTreeClusterService_HandleUpdateTree_Call) Run(run func(_a0 context.Context, _a1 *entities.EventUpdateTree)) *MockTreeClusterService_HandleUpdateTree_Call
func (*MockTreeClusterService_HandleUpdateTree_Call) RunAndReturn ¶
func (_c *MockTreeClusterService_HandleUpdateTree_Call) RunAndReturn(run func(context.Context, *entities.EventUpdateTree) error) *MockTreeClusterService_HandleUpdateTree_Call
type MockTreeClusterService_HandleUpdateWateringPlan_Call ¶
MockTreeClusterService_HandleUpdateWateringPlan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleUpdateWateringPlan'
func (*MockTreeClusterService_HandleUpdateWateringPlan_Call) Run ¶
func (_c *MockTreeClusterService_HandleUpdateWateringPlan_Call) Run(run func(_a0 context.Context, _a1 *entities.EventUpdateWateringPlan)) *MockTreeClusterService_HandleUpdateWateringPlan_Call
func (*MockTreeClusterService_HandleUpdateWateringPlan_Call) RunAndReturn ¶
func (_c *MockTreeClusterService_HandleUpdateWateringPlan_Call) RunAndReturn(run func(context.Context, *entities.EventUpdateWateringPlan) error) *MockTreeClusterService_HandleUpdateWateringPlan_Call
type MockTreeClusterService_Ready_Call ¶
MockTreeClusterService_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockTreeClusterService_Ready_Call) Return ¶
func (_c *MockTreeClusterService_Ready_Call) Return(_a0 bool) *MockTreeClusterService_Ready_Call
func (*MockTreeClusterService_Ready_Call) Run ¶
func (_c *MockTreeClusterService_Ready_Call) Run(run func()) *MockTreeClusterService_Ready_Call
func (*MockTreeClusterService_Ready_Call) RunAndReturn ¶
func (_c *MockTreeClusterService_Ready_Call) RunAndReturn(run func() bool) *MockTreeClusterService_Ready_Call
type MockTreeClusterService_UpdateWateringStatuses_Call ¶
MockTreeClusterService_UpdateWateringStatuses_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWateringStatuses'
func (*MockTreeClusterService_UpdateWateringStatuses_Call) Run ¶
func (_c *MockTreeClusterService_UpdateWateringStatuses_Call) Run(run func(ctx context.Context)) *MockTreeClusterService_UpdateWateringStatuses_Call
func (*MockTreeClusterService_UpdateWateringStatuses_Call) RunAndReturn ¶
func (_c *MockTreeClusterService_UpdateWateringStatuses_Call) RunAndReturn(run func(context.Context) error) *MockTreeClusterService_UpdateWateringStatuses_Call
type MockTreeClusterService_Update_Call ¶
MockTreeClusterService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockTreeClusterService_Update_Call) Return ¶
func (_c *MockTreeClusterService_Update_Call) Return(_a0 *entities.TreeCluster, _a1 error) *MockTreeClusterService_Update_Call
func (*MockTreeClusterService_Update_Call) Run ¶
func (_c *MockTreeClusterService_Update_Call) Run(run func(ctx context.Context, id int32, updateData *entities.TreeClusterUpdate)) *MockTreeClusterService_Update_Call
func (*MockTreeClusterService_Update_Call) RunAndReturn ¶
func (_c *MockTreeClusterService_Update_Call) RunAndReturn(run func(context.Context, int32, *entities.TreeClusterUpdate) (*entities.TreeCluster, error)) *MockTreeClusterService_Update_Call
type MockTreeService ¶
MockTreeService is an autogenerated mock type for the TreeService type
func NewMockTreeService ¶
func NewMockTreeService(t interface {
mock.TestingT
Cleanup(func())
}) *MockTreeService
NewMockTreeService creates a new instance of MockTreeService. 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 (*MockTreeService) Create ¶
func (_m *MockTreeService) Create(ctx context.Context, createData *entities.TreeCreate) (*entities.Tree, error)
Create provides a mock function with given fields: ctx, createData
func (*MockTreeService) Delete ¶
func (_m *MockTreeService) Delete(ctx context.Context, id int32) error
Delete provides a mock function with given fields: ctx, id
func (*MockTreeService) EXPECT ¶
func (_m *MockTreeService) EXPECT() *MockTreeService_Expecter
func (*MockTreeService) GetAll ¶
func (_m *MockTreeService) GetAll(ctx context.Context, query entities.TreeQuery) ([]*entities.Tree, int64, error)
GetAll provides a mock function with given fields: ctx, query
func (*MockTreeService) GetBySensorID ¶
GetBySensorID provides a mock function with given fields: ctx, id
func (*MockTreeService) HandleNewSensorData ¶
func (_m *MockTreeService) HandleNewSensorData(_a0 context.Context, _a1 *entities.EventNewSensorData) error
HandleNewSensorData provides a mock function with given fields: _a0, _a1
func (*MockTreeService) Ready ¶
func (_m *MockTreeService) Ready() bool
Ready provides a mock function with no fields
func (*MockTreeService) Update ¶
func (_m *MockTreeService) Update(ctx context.Context, id int32, updateData *entities.TreeUpdate) (*entities.Tree, error)
Update provides a mock function with given fields: ctx, id, updateData
func (*MockTreeService) UpdateWateringStatuses ¶
func (_m *MockTreeService) UpdateWateringStatuses(ctx context.Context) error
UpdateWateringStatuses provides a mock function with given fields: ctx
type MockTreeService_Create_Call ¶
MockTreeService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockTreeService_Create_Call) Return ¶
func (_c *MockTreeService_Create_Call) Return(_a0 *entities.Tree, _a1 error) *MockTreeService_Create_Call
func (*MockTreeService_Create_Call) Run ¶
func (_c *MockTreeService_Create_Call) Run(run func(ctx context.Context, createData *entities.TreeCreate)) *MockTreeService_Create_Call
func (*MockTreeService_Create_Call) RunAndReturn ¶
func (_c *MockTreeService_Create_Call) RunAndReturn(run func(context.Context, *entities.TreeCreate) (*entities.Tree, error)) *MockTreeService_Create_Call
type MockTreeService_Delete_Call ¶
MockTreeService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockTreeService_Delete_Call) Return ¶
func (_c *MockTreeService_Delete_Call) Return(_a0 error) *MockTreeService_Delete_Call
func (*MockTreeService_Delete_Call) Run ¶
func (_c *MockTreeService_Delete_Call) Run(run func(ctx context.Context, id int32)) *MockTreeService_Delete_Call
func (*MockTreeService_Delete_Call) RunAndReturn ¶
func (_c *MockTreeService_Delete_Call) RunAndReturn(run func(context.Context, int32) error) *MockTreeService_Delete_Call
type MockTreeService_Expecter ¶
type MockTreeService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTreeService_Expecter) Create ¶
func (_e *MockTreeService_Expecter) Create(ctx interface{}, createData interface{}) *MockTreeService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- createData *entities.TreeCreate
func (*MockTreeService_Expecter) Delete ¶
func (_e *MockTreeService_Expecter) Delete(ctx interface{}, id interface{}) *MockTreeService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id int32
func (*MockTreeService_Expecter) GetAll ¶
func (_e *MockTreeService_Expecter) GetAll(ctx interface{}, query interface{}) *MockTreeService_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
- query entities.TreeQuery
func (*MockTreeService_Expecter) GetByID ¶
func (_e *MockTreeService_Expecter) GetByID(ctx interface{}, id interface{}) *MockTreeService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id int32
func (*MockTreeService_Expecter) GetBySensorID ¶
func (_e *MockTreeService_Expecter) GetBySensorID(ctx interface{}, id interface{}) *MockTreeService_GetBySensorID_Call
GetBySensorID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*MockTreeService_Expecter) HandleNewSensorData ¶
func (_e *MockTreeService_Expecter) HandleNewSensorData(_a0 interface{}, _a1 interface{}) *MockTreeService_HandleNewSensorData_Call
HandleNewSensorData is a helper method to define mock.On call
- _a0 context.Context
- _a1 *entities.EventNewSensorData
func (*MockTreeService_Expecter) Ready ¶
func (_e *MockTreeService_Expecter) Ready() *MockTreeService_Ready_Call
Ready is a helper method to define mock.On call
func (*MockTreeService_Expecter) Update ¶
func (_e *MockTreeService_Expecter) Update(ctx interface{}, id interface{}, updateData interface{}) *MockTreeService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id int32
- updateData *entities.TreeUpdate
func (*MockTreeService_Expecter) UpdateWateringStatuses ¶
func (_e *MockTreeService_Expecter) UpdateWateringStatuses(ctx interface{}) *MockTreeService_UpdateWateringStatuses_Call
UpdateWateringStatuses is a helper method to define mock.On call
- ctx context.Context
type MockTreeService_GetAll_Call ¶
MockTreeService_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockTreeService_GetAll_Call) Return ¶
func (_c *MockTreeService_GetAll_Call) Return(_a0 []*entities.Tree, _a1 int64, _a2 error) *MockTreeService_GetAll_Call
func (*MockTreeService_GetAll_Call) Run ¶
func (_c *MockTreeService_GetAll_Call) Run(run func(ctx context.Context, query entities.TreeQuery)) *MockTreeService_GetAll_Call
func (*MockTreeService_GetAll_Call) RunAndReturn ¶
func (_c *MockTreeService_GetAll_Call) RunAndReturn(run func(context.Context, entities.TreeQuery) ([]*entities.Tree, int64, error)) *MockTreeService_GetAll_Call
type MockTreeService_GetByID_Call ¶
MockTreeService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*MockTreeService_GetByID_Call) Return ¶
func (_c *MockTreeService_GetByID_Call) Return(_a0 *entities.Tree, _a1 error) *MockTreeService_GetByID_Call
func (*MockTreeService_GetByID_Call) Run ¶
func (_c *MockTreeService_GetByID_Call) Run(run func(ctx context.Context, id int32)) *MockTreeService_GetByID_Call
func (*MockTreeService_GetByID_Call) RunAndReturn ¶
func (_c *MockTreeService_GetByID_Call) RunAndReturn(run func(context.Context, int32) (*entities.Tree, error)) *MockTreeService_GetByID_Call
type MockTreeService_GetBySensorID_Call ¶
MockTreeService_GetBySensorID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBySensorID'
func (*MockTreeService_GetBySensorID_Call) Return ¶
func (_c *MockTreeService_GetBySensorID_Call) Return(_a0 *entities.Tree, _a1 error) *MockTreeService_GetBySensorID_Call
func (*MockTreeService_GetBySensorID_Call) Run ¶
func (_c *MockTreeService_GetBySensorID_Call) Run(run func(ctx context.Context, id string)) *MockTreeService_GetBySensorID_Call
func (*MockTreeService_GetBySensorID_Call) RunAndReturn ¶
func (_c *MockTreeService_GetBySensorID_Call) RunAndReturn(run func(context.Context, string) (*entities.Tree, error)) *MockTreeService_GetBySensorID_Call
type MockTreeService_HandleNewSensorData_Call ¶
MockTreeService_HandleNewSensorData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleNewSensorData'
func (*MockTreeService_HandleNewSensorData_Call) Return ¶
func (_c *MockTreeService_HandleNewSensorData_Call) Return(_a0 error) *MockTreeService_HandleNewSensorData_Call
func (*MockTreeService_HandleNewSensorData_Call) Run ¶
func (_c *MockTreeService_HandleNewSensorData_Call) Run(run func(_a0 context.Context, _a1 *entities.EventNewSensorData)) *MockTreeService_HandleNewSensorData_Call
func (*MockTreeService_HandleNewSensorData_Call) RunAndReturn ¶
func (_c *MockTreeService_HandleNewSensorData_Call) RunAndReturn(run func(context.Context, *entities.EventNewSensorData) error) *MockTreeService_HandleNewSensorData_Call
type MockTreeService_Ready_Call ¶
MockTreeService_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockTreeService_Ready_Call) Return ¶
func (_c *MockTreeService_Ready_Call) Return(_a0 bool) *MockTreeService_Ready_Call
func (*MockTreeService_Ready_Call) Run ¶
func (_c *MockTreeService_Ready_Call) Run(run func()) *MockTreeService_Ready_Call
func (*MockTreeService_Ready_Call) RunAndReturn ¶
func (_c *MockTreeService_Ready_Call) RunAndReturn(run func() bool) *MockTreeService_Ready_Call
type MockTreeService_UpdateWateringStatuses_Call ¶
MockTreeService_UpdateWateringStatuses_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWateringStatuses'
func (*MockTreeService_UpdateWateringStatuses_Call) Return ¶
func (_c *MockTreeService_UpdateWateringStatuses_Call) Return(_a0 error) *MockTreeService_UpdateWateringStatuses_Call
func (*MockTreeService_UpdateWateringStatuses_Call) Run ¶
func (_c *MockTreeService_UpdateWateringStatuses_Call) Run(run func(ctx context.Context)) *MockTreeService_UpdateWateringStatuses_Call
func (*MockTreeService_UpdateWateringStatuses_Call) RunAndReturn ¶
func (_c *MockTreeService_UpdateWateringStatuses_Call) RunAndReturn(run func(context.Context) error) *MockTreeService_UpdateWateringStatuses_Call
type MockTreeService_Update_Call ¶
MockTreeService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockTreeService_Update_Call) Return ¶
func (_c *MockTreeService_Update_Call) Return(_a0 *entities.Tree, _a1 error) *MockTreeService_Update_Call
func (*MockTreeService_Update_Call) Run ¶
func (_c *MockTreeService_Update_Call) Run(run func(ctx context.Context, id int32, updateData *entities.TreeUpdate)) *MockTreeService_Update_Call
func (*MockTreeService_Update_Call) RunAndReturn ¶
func (_c *MockTreeService_Update_Call) RunAndReturn(run func(context.Context, int32, *entities.TreeUpdate) (*entities.Tree, error)) *MockTreeService_Update_Call
type MockVehicleService ¶
MockVehicleService is an autogenerated mock type for the VehicleService type
func NewMockVehicleService ¶
func NewMockVehicleService(t interface {
mock.TestingT
Cleanup(func())
}) *MockVehicleService
NewMockVehicleService creates a new instance of MockVehicleService. 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 (*MockVehicleService) Archive ¶
func (_m *MockVehicleService) Archive(ctx context.Context, id int32) error
Archive provides a mock function with given fields: ctx, id
func (*MockVehicleService) Create ¶
func (_m *MockVehicleService) Create(ctx context.Context, createData *entities.VehicleCreate) (*entities.Vehicle, error)
Create provides a mock function with given fields: ctx, createData
func (*MockVehicleService) Delete ¶
func (_m *MockVehicleService) Delete(ctx context.Context, id int32) error
Delete provides a mock function with given fields: ctx, id
func (*MockVehicleService) EXPECT ¶
func (_m *MockVehicleService) EXPECT() *MockVehicleService_Expecter
func (*MockVehicleService) GetAll ¶
func (_m *MockVehicleService) GetAll(ctx context.Context, query entities.VehicleQuery) ([]*entities.Vehicle, int64, error)
GetAll provides a mock function with given fields: ctx, query
func (*MockVehicleService) GetAllArchived ¶
GetAllArchived provides a mock function with given fields: ctx
func (*MockVehicleService) GetByPlate ¶
func (_m *MockVehicleService) GetByPlate(ctx context.Context, plate string) (*entities.Vehicle, error)
GetByPlate provides a mock function with given fields: ctx, plate
func (*MockVehicleService) Ready ¶
func (_m *MockVehicleService) Ready() bool
Ready provides a mock function with no fields
type MockVehicleService_Archive_Call ¶
MockVehicleService_Archive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Archive'
func (*MockVehicleService_Archive_Call) Return ¶
func (_c *MockVehicleService_Archive_Call) Return(_a0 error) *MockVehicleService_Archive_Call
func (*MockVehicleService_Archive_Call) Run ¶
func (_c *MockVehicleService_Archive_Call) Run(run func(ctx context.Context, id int32)) *MockVehicleService_Archive_Call
func (*MockVehicleService_Archive_Call) RunAndReturn ¶
func (_c *MockVehicleService_Archive_Call) RunAndReturn(run func(context.Context, int32) error) *MockVehicleService_Archive_Call
type MockVehicleService_Create_Call ¶
MockVehicleService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockVehicleService_Create_Call) Return ¶
func (_c *MockVehicleService_Create_Call) Return(_a0 *entities.Vehicle, _a1 error) *MockVehicleService_Create_Call
func (*MockVehicleService_Create_Call) Run ¶
func (_c *MockVehicleService_Create_Call) Run(run func(ctx context.Context, createData *entities.VehicleCreate)) *MockVehicleService_Create_Call
func (*MockVehicleService_Create_Call) RunAndReturn ¶
func (_c *MockVehicleService_Create_Call) RunAndReturn(run func(context.Context, *entities.VehicleCreate) (*entities.Vehicle, error)) *MockVehicleService_Create_Call
type MockVehicleService_Delete_Call ¶
MockVehicleService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockVehicleService_Delete_Call) Return ¶
func (_c *MockVehicleService_Delete_Call) Return(_a0 error) *MockVehicleService_Delete_Call
func (*MockVehicleService_Delete_Call) Run ¶
func (_c *MockVehicleService_Delete_Call) Run(run func(ctx context.Context, id int32)) *MockVehicleService_Delete_Call
func (*MockVehicleService_Delete_Call) RunAndReturn ¶
func (_c *MockVehicleService_Delete_Call) RunAndReturn(run func(context.Context, int32) error) *MockVehicleService_Delete_Call
type MockVehicleService_Expecter ¶
type MockVehicleService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockVehicleService_Expecter) Archive ¶
func (_e *MockVehicleService_Expecter) Archive(ctx interface{}, id interface{}) *MockVehicleService_Archive_Call
Archive is a helper method to define mock.On call
- ctx context.Context
- id int32
func (*MockVehicleService_Expecter) Create ¶
func (_e *MockVehicleService_Expecter) Create(ctx interface{}, createData interface{}) *MockVehicleService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- createData *entities.VehicleCreate
func (*MockVehicleService_Expecter) Delete ¶
func (_e *MockVehicleService_Expecter) Delete(ctx interface{}, id interface{}) *MockVehicleService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id int32
func (*MockVehicleService_Expecter) GetAll ¶
func (_e *MockVehicleService_Expecter) GetAll(ctx interface{}, query interface{}) *MockVehicleService_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
- query entities.VehicleQuery
func (*MockVehicleService_Expecter) GetAllArchived ¶
func (_e *MockVehicleService_Expecter) GetAllArchived(ctx interface{}) *MockVehicleService_GetAllArchived_Call
GetAllArchived is a helper method to define mock.On call
- ctx context.Context
func (*MockVehicleService_Expecter) GetByID ¶
func (_e *MockVehicleService_Expecter) GetByID(ctx interface{}, id interface{}) *MockVehicleService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id int32
func (*MockVehicleService_Expecter) GetByPlate ¶
func (_e *MockVehicleService_Expecter) GetByPlate(ctx interface{}, plate interface{}) *MockVehicleService_GetByPlate_Call
GetByPlate is a helper method to define mock.On call
- ctx context.Context
- plate string
func (*MockVehicleService_Expecter) Ready ¶
func (_e *MockVehicleService_Expecter) Ready() *MockVehicleService_Ready_Call
Ready is a helper method to define mock.On call
func (*MockVehicleService_Expecter) Update ¶
func (_e *MockVehicleService_Expecter) Update(ctx interface{}, id interface{}, updateData interface{}) *MockVehicleService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id int32
- updateData *entities.VehicleUpdate
type MockVehicleService_GetAllArchived_Call ¶
MockVehicleService_GetAllArchived_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllArchived'
func (*MockVehicleService_GetAllArchived_Call) Return ¶
func (_c *MockVehicleService_GetAllArchived_Call) Return(_a0 []*entities.Vehicle, _a1 error) *MockVehicleService_GetAllArchived_Call
func (*MockVehicleService_GetAllArchived_Call) Run ¶
func (_c *MockVehicleService_GetAllArchived_Call) Run(run func(ctx context.Context)) *MockVehicleService_GetAllArchived_Call
func (*MockVehicleService_GetAllArchived_Call) RunAndReturn ¶
func (_c *MockVehicleService_GetAllArchived_Call) RunAndReturn(run func(context.Context) ([]*entities.Vehicle, error)) *MockVehicleService_GetAllArchived_Call
type MockVehicleService_GetAll_Call ¶
MockVehicleService_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockVehicleService_GetAll_Call) Return ¶
func (_c *MockVehicleService_GetAll_Call) Return(_a0 []*entities.Vehicle, _a1 int64, _a2 error) *MockVehicleService_GetAll_Call
func (*MockVehicleService_GetAll_Call) Run ¶
func (_c *MockVehicleService_GetAll_Call) Run(run func(ctx context.Context, query entities.VehicleQuery)) *MockVehicleService_GetAll_Call
func (*MockVehicleService_GetAll_Call) RunAndReturn ¶
func (_c *MockVehicleService_GetAll_Call) RunAndReturn(run func(context.Context, entities.VehicleQuery) ([]*entities.Vehicle, int64, error)) *MockVehicleService_GetAll_Call
type MockVehicleService_GetByID_Call ¶
MockVehicleService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*MockVehicleService_GetByID_Call) Return ¶
func (_c *MockVehicleService_GetByID_Call) Return(_a0 *entities.Vehicle, _a1 error) *MockVehicleService_GetByID_Call
func (*MockVehicleService_GetByID_Call) Run ¶
func (_c *MockVehicleService_GetByID_Call) Run(run func(ctx context.Context, id int32)) *MockVehicleService_GetByID_Call
func (*MockVehicleService_GetByID_Call) RunAndReturn ¶
func (_c *MockVehicleService_GetByID_Call) RunAndReturn(run func(context.Context, int32) (*entities.Vehicle, error)) *MockVehicleService_GetByID_Call
type MockVehicleService_GetByPlate_Call ¶
MockVehicleService_GetByPlate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByPlate'
func (*MockVehicleService_GetByPlate_Call) Return ¶
func (_c *MockVehicleService_GetByPlate_Call) Return(_a0 *entities.Vehicle, _a1 error) *MockVehicleService_GetByPlate_Call
func (*MockVehicleService_GetByPlate_Call) Run ¶
func (_c *MockVehicleService_GetByPlate_Call) Run(run func(ctx context.Context, plate string)) *MockVehicleService_GetByPlate_Call
func (*MockVehicleService_GetByPlate_Call) RunAndReturn ¶
func (_c *MockVehicleService_GetByPlate_Call) RunAndReturn(run func(context.Context, string) (*entities.Vehicle, error)) *MockVehicleService_GetByPlate_Call
type MockVehicleService_Ready_Call ¶
MockVehicleService_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockVehicleService_Ready_Call) Return ¶
func (_c *MockVehicleService_Ready_Call) Return(_a0 bool) *MockVehicleService_Ready_Call
func (*MockVehicleService_Ready_Call) Run ¶
func (_c *MockVehicleService_Ready_Call) Run(run func()) *MockVehicleService_Ready_Call
func (*MockVehicleService_Ready_Call) RunAndReturn ¶
func (_c *MockVehicleService_Ready_Call) RunAndReturn(run func() bool) *MockVehicleService_Ready_Call
type MockVehicleService_Update_Call ¶
MockVehicleService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockVehicleService_Update_Call) Return ¶
func (_c *MockVehicleService_Update_Call) Return(_a0 *entities.Vehicle, _a1 error) *MockVehicleService_Update_Call
func (*MockVehicleService_Update_Call) Run ¶
func (_c *MockVehicleService_Update_Call) Run(run func(ctx context.Context, id int32, updateData *entities.VehicleUpdate)) *MockVehicleService_Update_Call
func (*MockVehicleService_Update_Call) RunAndReturn ¶
func (_c *MockVehicleService_Update_Call) RunAndReturn(run func(context.Context, int32, *entities.VehicleUpdate) (*entities.Vehicle, error)) *MockVehicleService_Update_Call
type MockWateringPlanService ¶
MockWateringPlanService is an autogenerated mock type for the WateringPlanService type
func NewMockWateringPlanService ¶
func NewMockWateringPlanService(t interface {
mock.TestingT
Cleanup(func())
}) *MockWateringPlanService
NewMockWateringPlanService creates a new instance of MockWateringPlanService. 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 (*MockWateringPlanService) Create ¶
func (_m *MockWateringPlanService) Create(ctx context.Context, createData *entities.WateringPlanCreate) (*entities.WateringPlan, error)
Create provides a mock function with given fields: ctx, createData
func (*MockWateringPlanService) Delete ¶
func (_m *MockWateringPlanService) Delete(ctx context.Context, id int32) error
Delete provides a mock function with given fields: ctx, id
func (*MockWateringPlanService) EXPECT ¶
func (_m *MockWateringPlanService) EXPECT() *MockWateringPlanService_Expecter
func (*MockWateringPlanService) GetAll ¶
func (_m *MockWateringPlanService) GetAll(ctx context.Context, query entities.Query) ([]*entities.WateringPlan, int64, error)
GetAll provides a mock function with given fields: ctx, query
func (*MockWateringPlanService) GetByID ¶
func (_m *MockWateringPlanService) GetByID(ctx context.Context, id int32) (*entities.WateringPlan, error)
GetByID provides a mock function with given fields: ctx, id
func (*MockWateringPlanService) GetGPXFileStream ¶
func (_m *MockWateringPlanService) GetGPXFileStream(ctx context.Context, objName string) (io.ReadSeekCloser, error)
GetGPXFileStream provides a mock function with given fields: ctx, objName
func (*MockWateringPlanService) PreviewRoute ¶
func (_m *MockWateringPlanService) PreviewRoute(ctx context.Context, transporterID int32, trailerID *int32, clusterIDs []int32) (*entities.GeoJSON, error)
PreviewRoute provides a mock function with given fields: ctx, transporterID, trailerID, clusterIDs
func (*MockWateringPlanService) Ready ¶
func (_m *MockWateringPlanService) Ready() bool
Ready provides a mock function with no fields
func (*MockWateringPlanService) Update ¶
func (_m *MockWateringPlanService) Update(ctx context.Context, id int32, updateData *entities.WateringPlanUpdate) (*entities.WateringPlan, error)
Update provides a mock function with given fields: ctx, id, updateData
func (*MockWateringPlanService) UpdateStatuses ¶
func (_m *MockWateringPlanService) UpdateStatuses(ctx context.Context) error
UpdateStatuses provides a mock function with given fields: ctx
type MockWateringPlanService_Create_Call ¶
MockWateringPlanService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockWateringPlanService_Create_Call) Return ¶
func (_c *MockWateringPlanService_Create_Call) Return(_a0 *entities.WateringPlan, _a1 error) *MockWateringPlanService_Create_Call
func (*MockWateringPlanService_Create_Call) Run ¶
func (_c *MockWateringPlanService_Create_Call) Run(run func(ctx context.Context, createData *entities.WateringPlanCreate)) *MockWateringPlanService_Create_Call
func (*MockWateringPlanService_Create_Call) RunAndReturn ¶
func (_c *MockWateringPlanService_Create_Call) RunAndReturn(run func(context.Context, *entities.WateringPlanCreate) (*entities.WateringPlan, error)) *MockWateringPlanService_Create_Call
type MockWateringPlanService_Delete_Call ¶
MockWateringPlanService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockWateringPlanService_Delete_Call) Return ¶
func (_c *MockWateringPlanService_Delete_Call) Return(_a0 error) *MockWateringPlanService_Delete_Call
func (*MockWateringPlanService_Delete_Call) Run ¶
func (_c *MockWateringPlanService_Delete_Call) Run(run func(ctx context.Context, id int32)) *MockWateringPlanService_Delete_Call
func (*MockWateringPlanService_Delete_Call) RunAndReturn ¶
func (_c *MockWateringPlanService_Delete_Call) RunAndReturn(run func(context.Context, int32) error) *MockWateringPlanService_Delete_Call
type MockWateringPlanService_Expecter ¶
type MockWateringPlanService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockWateringPlanService_Expecter) Create ¶
func (_e *MockWateringPlanService_Expecter) Create(ctx interface{}, createData interface{}) *MockWateringPlanService_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- createData *entities.WateringPlanCreate
func (*MockWateringPlanService_Expecter) Delete ¶
func (_e *MockWateringPlanService_Expecter) Delete(ctx interface{}, id interface{}) *MockWateringPlanService_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id int32
func (*MockWateringPlanService_Expecter) GetAll ¶
func (_e *MockWateringPlanService_Expecter) GetAll(ctx interface{}, query interface{}) *MockWateringPlanService_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
- query entities.Query
func (*MockWateringPlanService_Expecter) GetByID ¶
func (_e *MockWateringPlanService_Expecter) GetByID(ctx interface{}, id interface{}) *MockWateringPlanService_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id int32
func (*MockWateringPlanService_Expecter) GetGPXFileStream ¶
func (_e *MockWateringPlanService_Expecter) GetGPXFileStream(ctx interface{}, objName interface{}) *MockWateringPlanService_GetGPXFileStream_Call
GetGPXFileStream is a helper method to define mock.On call
- ctx context.Context
- objName string
func (*MockWateringPlanService_Expecter) PreviewRoute ¶
func (_e *MockWateringPlanService_Expecter) PreviewRoute(ctx interface{}, transporterID interface{}, trailerID interface{}, clusterIDs interface{}) *MockWateringPlanService_PreviewRoute_Call
PreviewRoute is a helper method to define mock.On call
- ctx context.Context
- transporterID int32
- trailerID *int32
- clusterIDs []int32
func (*MockWateringPlanService_Expecter) Ready ¶
func (_e *MockWateringPlanService_Expecter) Ready() *MockWateringPlanService_Ready_Call
Ready is a helper method to define mock.On call
func (*MockWateringPlanService_Expecter) Update ¶
func (_e *MockWateringPlanService_Expecter) Update(ctx interface{}, id interface{}, updateData interface{}) *MockWateringPlanService_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id int32
- updateData *entities.WateringPlanUpdate
func (*MockWateringPlanService_Expecter) UpdateStatuses ¶
func (_e *MockWateringPlanService_Expecter) UpdateStatuses(ctx interface{}) *MockWateringPlanService_UpdateStatuses_Call
UpdateStatuses is a helper method to define mock.On call
- ctx context.Context
type MockWateringPlanService_GetAll_Call ¶
MockWateringPlanService_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*MockWateringPlanService_GetAll_Call) Return ¶
func (_c *MockWateringPlanService_GetAll_Call) Return(_a0 []*entities.WateringPlan, _a1 int64, _a2 error) *MockWateringPlanService_GetAll_Call
func (*MockWateringPlanService_GetAll_Call) Run ¶
func (_c *MockWateringPlanService_GetAll_Call) Run(run func(ctx context.Context, query entities.Query)) *MockWateringPlanService_GetAll_Call
func (*MockWateringPlanService_GetAll_Call) RunAndReturn ¶
func (_c *MockWateringPlanService_GetAll_Call) RunAndReturn(run func(context.Context, entities.Query) ([]*entities.WateringPlan, int64, error)) *MockWateringPlanService_GetAll_Call
type MockWateringPlanService_GetByID_Call ¶
MockWateringPlanService_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*MockWateringPlanService_GetByID_Call) Return ¶
func (_c *MockWateringPlanService_GetByID_Call) Return(_a0 *entities.WateringPlan, _a1 error) *MockWateringPlanService_GetByID_Call
func (*MockWateringPlanService_GetByID_Call) Run ¶
func (_c *MockWateringPlanService_GetByID_Call) Run(run func(ctx context.Context, id int32)) *MockWateringPlanService_GetByID_Call
func (*MockWateringPlanService_GetByID_Call) RunAndReturn ¶
func (_c *MockWateringPlanService_GetByID_Call) RunAndReturn(run func(context.Context, int32) (*entities.WateringPlan, error)) *MockWateringPlanService_GetByID_Call
type MockWateringPlanService_GetGPXFileStream_Call ¶
MockWateringPlanService_GetGPXFileStream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGPXFileStream'
func (*MockWateringPlanService_GetGPXFileStream_Call) Return ¶
func (_c *MockWateringPlanService_GetGPXFileStream_Call) Return(_a0 io.ReadSeekCloser, _a1 error) *MockWateringPlanService_GetGPXFileStream_Call
func (*MockWateringPlanService_GetGPXFileStream_Call) Run ¶
func (_c *MockWateringPlanService_GetGPXFileStream_Call) Run(run func(ctx context.Context, objName string)) *MockWateringPlanService_GetGPXFileStream_Call
func (*MockWateringPlanService_GetGPXFileStream_Call) RunAndReturn ¶
func (_c *MockWateringPlanService_GetGPXFileStream_Call) RunAndReturn(run func(context.Context, string) (io.ReadSeekCloser, error)) *MockWateringPlanService_GetGPXFileStream_Call
type MockWateringPlanService_PreviewRoute_Call ¶
MockWateringPlanService_PreviewRoute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PreviewRoute'
func (*MockWateringPlanService_PreviewRoute_Call) Return ¶
func (_c *MockWateringPlanService_PreviewRoute_Call) Return(_a0 *entities.GeoJSON, _a1 error) *MockWateringPlanService_PreviewRoute_Call
func (*MockWateringPlanService_PreviewRoute_Call) Run ¶
func (_c *MockWateringPlanService_PreviewRoute_Call) Run(run func(ctx context.Context, transporterID int32, trailerID *int32, clusterIDs []int32)) *MockWateringPlanService_PreviewRoute_Call
func (*MockWateringPlanService_PreviewRoute_Call) RunAndReturn ¶
func (_c *MockWateringPlanService_PreviewRoute_Call) RunAndReturn(run func(context.Context, int32, *int32, []int32) (*entities.GeoJSON, error)) *MockWateringPlanService_PreviewRoute_Call
type MockWateringPlanService_Ready_Call ¶
MockWateringPlanService_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*MockWateringPlanService_Ready_Call) Return ¶
func (_c *MockWateringPlanService_Ready_Call) Return(_a0 bool) *MockWateringPlanService_Ready_Call
func (*MockWateringPlanService_Ready_Call) Run ¶
func (_c *MockWateringPlanService_Ready_Call) Run(run func()) *MockWateringPlanService_Ready_Call
func (*MockWateringPlanService_Ready_Call) RunAndReturn ¶
func (_c *MockWateringPlanService_Ready_Call) RunAndReturn(run func() bool) *MockWateringPlanService_Ready_Call
type MockWateringPlanService_UpdateStatuses_Call ¶
MockWateringPlanService_UpdateStatuses_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStatuses'
func (*MockWateringPlanService_UpdateStatuses_Call) Return ¶
func (_c *MockWateringPlanService_UpdateStatuses_Call) Return(_a0 error) *MockWateringPlanService_UpdateStatuses_Call
func (*MockWateringPlanService_UpdateStatuses_Call) Run ¶
func (_c *MockWateringPlanService_UpdateStatuses_Call) Run(run func(ctx context.Context)) *MockWateringPlanService_UpdateStatuses_Call
func (*MockWateringPlanService_UpdateStatuses_Call) RunAndReturn ¶
func (_c *MockWateringPlanService_UpdateStatuses_Call) RunAndReturn(run func(context.Context) error) *MockWateringPlanService_UpdateStatuses_Call
type MockWateringPlanService_Update_Call ¶
MockWateringPlanService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockWateringPlanService_Update_Call) Return ¶
func (_c *MockWateringPlanService_Update_Call) Return(_a0 *entities.WateringPlan, _a1 error) *MockWateringPlanService_Update_Call
func (*MockWateringPlanService_Update_Call) Run ¶
func (_c *MockWateringPlanService_Update_Call) Run(run func(ctx context.Context, id int32, updateData *entities.WateringPlanUpdate)) *MockWateringPlanService_Update_Call
func (*MockWateringPlanService_Update_Call) RunAndReturn ¶
func (_c *MockWateringPlanService_Update_Call) RunAndReturn(run func(context.Context, int32, *entities.WateringPlanUpdate) (*entities.WateringPlan, error)) *MockWateringPlanService_Update_Call