service

package
v1.3.0-nightly.20251019 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthService

type MockAuthService struct {
	mock.Mock
}

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 (*MockAuthService) GetAll

func (_m *MockAuthService) GetAll(ctx context.Context) ([]*entities.User, error)

GetAll provides a mock function with given fields: ctx

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) GetByIDs

func (_m *MockAuthService) GetByIDs(ctx context.Context, ids []string) ([]*entities.User, error)

GetByIDs provides a mock function with given fields: ctx, ids

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

func (_m *MockAuthService) LogoutRequest(ctx context.Context, logoutRequest *entities.Logout) error

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

type MockAuthService_ClientTokenCallback_Call struct {
	*mock.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 (*MockAuthService_ClientTokenCallback_Call) Run

func (*MockAuthService_ClientTokenCallback_Call) RunAndReturn

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

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

type MockAuthService_GetAllByRole_Call struct {
	*mock.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 (*MockAuthService_GetAllByRole_Call) Run

func (*MockAuthService_GetAllByRole_Call) RunAndReturn

type MockAuthService_GetAll_Call

type MockAuthService_GetAll_Call struct {
	*mock.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 (*MockAuthService_GetAll_Call) Run

func (*MockAuthService_GetAll_Call) RunAndReturn

type MockAuthService_GetByIDs_Call

type MockAuthService_GetByIDs_Call struct {
	*mock.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 (*MockAuthService_GetByIDs_Call) Run

func (*MockAuthService_GetByIDs_Call) RunAndReturn

type MockAuthService_LoginRequest_Call

type MockAuthService_LoginRequest_Call struct {
	*mock.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 (*MockAuthService_LoginRequest_Call) Run

func (*MockAuthService_LoginRequest_Call) RunAndReturn

type MockAuthService_LogoutRequest_Call

type MockAuthService_LogoutRequest_Call struct {
	*mock.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 (*MockAuthService_LogoutRequest_Call) Run

func (*MockAuthService_LogoutRequest_Call) RunAndReturn

type MockAuthService_Ready_Call

type MockAuthService_Ready_Call struct {
	*mock.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 (*MockAuthService_Ready_Call) Run

func (*MockAuthService_Ready_Call) RunAndReturn

func (_c *MockAuthService_Ready_Call) RunAndReturn(run func() bool) *MockAuthService_Ready_Call

type MockAuthService_RefreshToken_Call

type MockAuthService_RefreshToken_Call struct {
	*mock.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 (*MockAuthService_RefreshToken_Call) Run

func (*MockAuthService_RefreshToken_Call) RunAndReturn

type MockAuthService_Register_Call

type MockAuthService_Register_Call struct {
	*mock.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 (*MockAuthService_Register_Call) Run

func (*MockAuthService_Register_Call) RunAndReturn

type MockAuthService_RetrospectToken_Call

type MockAuthService_RetrospectToken_Call struct {
	*mock.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 (*MockAuthService_RetrospectToken_Call) Run

func (*MockAuthService_RetrospectToken_Call) RunAndReturn

type MockEvaluationService

type MockEvaluationService struct {
	mock.Mock
}

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 (*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

GetEvaluation is a helper method to define mock.On call

  • ctx context.Context

func (*MockEvaluationService_Expecter) Ready

Ready is a helper method to define mock.On call

type MockEvaluationService_GetEvaluation_Call

type MockEvaluationService_GetEvaluation_Call struct {
	*mock.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 (*MockEvaluationService_GetEvaluation_Call) Run

func (*MockEvaluationService_GetEvaluation_Call) RunAndReturn

type MockEvaluationService_Ready_Call

type MockEvaluationService_Ready_Call struct {
	*mock.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 (*MockEvaluationService_Ready_Call) Run

func (*MockEvaluationService_Ready_Call) RunAndReturn

type MockInfoService

type MockInfoService struct {
	mock.Mock
}

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 (*MockInfoService) GetAppInfo

func (_m *MockInfoService) GetAppInfo(_a0 context.Context) (*entities.App, error)

GetAppInfo provides a mock function with given fields: _a0

func (*MockInfoService) GetAppInfoResponse

func (_m *MockInfoService) GetAppInfoResponse(_a0 context.Context) (*entities.App, error)

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

Ready is a helper method to define mock.On call

type MockInfoService_GetAppInfoResponse_Call

type MockInfoService_GetAppInfoResponse_Call struct {
	*mock.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 (*MockInfoService_GetAppInfoResponse_Call) Run

func (*MockInfoService_GetAppInfoResponse_Call) RunAndReturn

type MockInfoService_GetAppInfo_Call

type MockInfoService_GetAppInfo_Call struct {
	*mock.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 (*MockInfoService_GetAppInfo_Call) Run

func (*MockInfoService_GetAppInfo_Call) RunAndReturn

type MockInfoService_Ready_Call

type MockInfoService_Ready_Call struct {
	*mock.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 (*MockInfoService_Ready_Call) Run

func (*MockInfoService_Ready_Call) RunAndReturn

func (_c *MockInfoService_Ready_Call) RunAndReturn(run func() bool) *MockInfoService_Ready_Call

type MockPluginService

type MockPluginService struct {
	mock.Mock
}

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 (*MockPluginService) Get

Get provides a mock function with given fields: ctx, slug

func (*MockPluginService) GetAll

func (_m *MockPluginService) GetAll(ctx context.Context) ([]entities.Plugin, []time.Time)

GetAll provides a mock function with given fields: ctx

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

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

type MockPluginService_GetAll_Call struct {
	*mock.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 (*MockPluginService_GetAll_Call) Run

func (*MockPluginService_GetAll_Call) RunAndReturn

type MockPluginService_Get_Call

type MockPluginService_Get_Call struct {
	*mock.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 (*MockPluginService_Get_Call) Run

func (*MockPluginService_Get_Call) RunAndReturn

type MockPluginService_HeartBeat_Call

type MockPluginService_HeartBeat_Call struct {
	*mock.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 (*MockPluginService_HeartBeat_Call) Run

func (*MockPluginService_HeartBeat_Call) RunAndReturn

type MockPluginService_Ready_Call

type MockPluginService_Ready_Call struct {
	*mock.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 (*MockPluginService_Ready_Call) Run

func (*MockPluginService_Ready_Call) RunAndReturn

func (_c *MockPluginService_Ready_Call) RunAndReturn(run func() bool) *MockPluginService_Ready_Call

type MockPluginService_RefreshToken_Call

type MockPluginService_RefreshToken_Call struct {
	*mock.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 (*MockPluginService_RefreshToken_Call) Run

func (*MockPluginService_RefreshToken_Call) RunAndReturn

type MockPluginService_Register_Call

type MockPluginService_Register_Call struct {
	*mock.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 (*MockPluginService_Register_Call) Run

func (*MockPluginService_Register_Call) RunAndReturn

type MockPluginService_StartCleanup_Call

type MockPluginService_StartCleanup_Call struct {
	*mock.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 (*MockPluginService_StartCleanup_Call) Run

func (*MockPluginService_StartCleanup_Call) RunAndReturn

type MockPluginService_Unregister_Call

type MockPluginService_Unregister_Call struct {
	*mock.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 (*MockPluginService_Unregister_Call) Run

func (*MockPluginService_Unregister_Call) RunAndReturn

type MockRegionService

type MockRegionService struct {
	mock.Mock
}

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 (*MockRegionService) GetAll

func (_m *MockRegionService) GetAll(ctx context.Context) ([]*entities.Region, int64, error)

GetAll provides a mock function with given fields: ctx

func (*MockRegionService) GetByID

func (_m *MockRegionService) GetByID(ctx context.Context, id int32) (*entities.Region, error)

GetByID provides a mock function with given fields: ctx, id

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

Ready is a helper method to define mock.On call

type MockRegionService_GetAll_Call

type MockRegionService_GetAll_Call struct {
	*mock.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 (*MockRegionService_GetAll_Call) Run

func (*MockRegionService_GetAll_Call) RunAndReturn

type MockRegionService_GetByID_Call

type MockRegionService_GetByID_Call struct {
	*mock.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 (*MockRegionService_GetByID_Call) Run

func (*MockRegionService_GetByID_Call) RunAndReturn

type MockRegionService_Ready_Call

type MockRegionService_Ready_Call struct {
	*mock.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 (*MockRegionService_Ready_Call) Run

func (*MockRegionService_Ready_Call) RunAndReturn

func (_c *MockRegionService_Ready_Call) RunAndReturn(run func() bool) *MockRegionService_Ready_Call

type MockSensorService

type MockSensorService struct {
	mock.Mock
}

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 (*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) GetByID

func (_m *MockSensorService) GetByID(ctx context.Context, id string) (*entities.Sensor, error)

GetByID 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

func (_m *MockSensorService) MapSensorToTree(ctx context.Context, sen *entities.Sensor) error

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

type MockSensorService_Create_Call struct {
	*mock.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 (*MockSensorService_Create_Call) Run

func (*MockSensorService_Create_Call) RunAndReturn

type MockSensorService_Delete_Call

type MockSensorService_Delete_Call struct {
	*mock.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 (*MockSensorService_Delete_Call) Run

func (*MockSensorService_Delete_Call) RunAndReturn

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

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

type MockSensorService_GetAllDataByID_Call struct {
	*mock.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 (*MockSensorService_GetAllDataByID_Call) Run

func (*MockSensorService_GetAllDataByID_Call) RunAndReturn

type MockSensorService_GetAll_Call

type MockSensorService_GetAll_Call struct {
	*mock.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 (*MockSensorService_GetAll_Call) Run

func (*MockSensorService_GetAll_Call) RunAndReturn

type MockSensorService_GetByID_Call

type MockSensorService_GetByID_Call struct {
	*mock.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 (*MockSensorService_GetByID_Call) Run

func (*MockSensorService_GetByID_Call) RunAndReturn

type MockSensorService_HandleMessage_Call

type MockSensorService_HandleMessage_Call struct {
	*mock.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 (*MockSensorService_HandleMessage_Call) Run

func (*MockSensorService_HandleMessage_Call) RunAndReturn

type MockSensorService_MapSensorToTree_Call

type MockSensorService_MapSensorToTree_Call struct {
	*mock.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 (*MockSensorService_MapSensorToTree_Call) Run

func (*MockSensorService_MapSensorToTree_Call) RunAndReturn

type MockSensorService_Ready_Call

type MockSensorService_Ready_Call struct {
	*mock.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 (*MockSensorService_Ready_Call) Run

func (*MockSensorService_Ready_Call) RunAndReturn

func (_c *MockSensorService_Ready_Call) RunAndReturn(run func() bool) *MockSensorService_Ready_Call

type MockSensorService_UpdateStatuses_Call

type MockSensorService_UpdateStatuses_Call struct {
	*mock.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 (*MockSensorService_UpdateStatuses_Call) Run

func (*MockSensorService_UpdateStatuses_Call) RunAndReturn

type MockSensorService_Update_Call

type MockSensorService_Update_Call struct {
	*mock.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 (*MockSensorService_Update_Call) Run

func (*MockSensorService_Update_Call) RunAndReturn

type MockService

type MockService struct {
	mock.Mock
}

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

Ready is a helper method to define mock.On call

type MockService_Ready_Call

type MockService_Ready_Call struct {
	*mock.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 (*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

type MockServicesInterface struct {
	mock.Mock
}

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

type MockServicesInterface_AllServicesReady_Call

type MockServicesInterface_AllServicesReady_Call struct {
	*mock.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 (*MockServicesInterface_AllServicesReady_Call) Run

func (*MockServicesInterface_AllServicesReady_Call) RunAndReturn

type MockServicesInterface_Expecter

type MockServicesInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockServicesInterface_Expecter) AllServicesReady

AllServicesReady is a helper method to define mock.On call

type MockTreeClusterService

type MockTreeClusterService struct {
	mock.Mock
}

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

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 (*MockTreeClusterService) GetAll

GetAll provides a mock function with given fields: ctx, query

func (*MockTreeClusterService) GetByID

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

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

type MockTreeClusterService_Create_Call struct {
	*mock.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 (*MockTreeClusterService_Create_Call) Run

func (*MockTreeClusterService_Create_Call) RunAndReturn

type MockTreeClusterService_Delete_Call

type MockTreeClusterService_Delete_Call struct {
	*mock.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 (*MockTreeClusterService_Delete_Call) Run

func (*MockTreeClusterService_Delete_Call) RunAndReturn

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

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

type MockTreeClusterService_GetAll_Call struct {
	*mock.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 (*MockTreeClusterService_GetAll_Call) Run

func (*MockTreeClusterService_GetAll_Call) RunAndReturn

type MockTreeClusterService_GetByID_Call

type MockTreeClusterService_GetByID_Call struct {
	*mock.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 (*MockTreeClusterService_GetByID_Call) Run

func (*MockTreeClusterService_GetByID_Call) RunAndReturn

type MockTreeClusterService_HandleCreateTree_Call

type MockTreeClusterService_HandleCreateTree_Call struct {
	*mock.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 (*MockTreeClusterService_HandleCreateTree_Call) Run

func (*MockTreeClusterService_HandleCreateTree_Call) RunAndReturn

type MockTreeClusterService_HandleDeleteTree_Call

type MockTreeClusterService_HandleDeleteTree_Call struct {
	*mock.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 (*MockTreeClusterService_HandleDeleteTree_Call) Run

func (*MockTreeClusterService_HandleDeleteTree_Call) RunAndReturn

type MockTreeClusterService_HandleNewSensorData_Call

type MockTreeClusterService_HandleNewSensorData_Call struct {
	*mock.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 (*MockTreeClusterService_HandleNewSensorData_Call) Run

func (*MockTreeClusterService_HandleNewSensorData_Call) RunAndReturn

type MockTreeClusterService_HandleUpdateTree_Call

type MockTreeClusterService_HandleUpdateTree_Call struct {
	*mock.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 (*MockTreeClusterService_HandleUpdateTree_Call) Run

func (*MockTreeClusterService_HandleUpdateTree_Call) RunAndReturn

type MockTreeClusterService_HandleUpdateWateringPlan_Call

type MockTreeClusterService_HandleUpdateWateringPlan_Call struct {
	*mock.Call
}

MockTreeClusterService_HandleUpdateWateringPlan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleUpdateWateringPlan'

func (*MockTreeClusterService_HandleUpdateWateringPlan_Call) Return

func (*MockTreeClusterService_HandleUpdateWateringPlan_Call) Run

type MockTreeClusterService_Ready_Call

type MockTreeClusterService_Ready_Call struct {
	*mock.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 (*MockTreeClusterService_Ready_Call) Run

func (*MockTreeClusterService_Ready_Call) RunAndReturn

type MockTreeClusterService_UpdateWateringStatuses_Call

type MockTreeClusterService_UpdateWateringStatuses_Call struct {
	*mock.Call
}

MockTreeClusterService_UpdateWateringStatuses_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateWateringStatuses'

func (*MockTreeClusterService_UpdateWateringStatuses_Call) Return

func (*MockTreeClusterService_UpdateWateringStatuses_Call) Run

func (*MockTreeClusterService_UpdateWateringStatuses_Call) RunAndReturn

type MockTreeClusterService_Update_Call

type MockTreeClusterService_Update_Call struct {
	*mock.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 (*MockTreeClusterService_Update_Call) Run

type MockTreeService

type MockTreeService struct {
	mock.Mock
}

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 (*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) GetByID

func (_m *MockTreeService) GetByID(ctx context.Context, id int32) (*entities.Tree, error)

GetByID provides a mock function with given fields: ctx, id

func (*MockTreeService) GetBySensorID

func (_m *MockTreeService) GetBySensorID(ctx context.Context, id string) (*entities.Tree, error)

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

type MockTreeService_Create_Call struct {
	*mock.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 (*MockTreeService_Create_Call) Run

func (*MockTreeService_Create_Call) RunAndReturn

type MockTreeService_Delete_Call

type MockTreeService_Delete_Call struct {
	*mock.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 (*MockTreeService_Delete_Call) Run

func (*MockTreeService_Delete_Call) RunAndReturn

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

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

type MockTreeService_GetAll_Call struct {
	*mock.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 (*MockTreeService_GetAll_Call) Run

func (*MockTreeService_GetAll_Call) RunAndReturn

type MockTreeService_GetByID_Call

type MockTreeService_GetByID_Call struct {
	*mock.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 (*MockTreeService_GetByID_Call) Run

func (*MockTreeService_GetByID_Call) RunAndReturn

type MockTreeService_GetBySensorID_Call

type MockTreeService_GetBySensorID_Call struct {
	*mock.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 (*MockTreeService_GetBySensorID_Call) Run

func (*MockTreeService_GetBySensorID_Call) RunAndReturn

type MockTreeService_HandleNewSensorData_Call

type MockTreeService_HandleNewSensorData_Call struct {
	*mock.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 (*MockTreeService_HandleNewSensorData_Call) Run

func (*MockTreeService_HandleNewSensorData_Call) RunAndReturn

type MockTreeService_Ready_Call

type MockTreeService_Ready_Call struct {
	*mock.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 (*MockTreeService_Ready_Call) Run

func (*MockTreeService_Ready_Call) RunAndReturn

func (_c *MockTreeService_Ready_Call) RunAndReturn(run func() bool) *MockTreeService_Ready_Call

type MockTreeService_UpdateWateringStatuses_Call

type MockTreeService_UpdateWateringStatuses_Call struct {
	*mock.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 (*MockTreeService_UpdateWateringStatuses_Call) Run

func (*MockTreeService_UpdateWateringStatuses_Call) RunAndReturn

type MockTreeService_Update_Call

type MockTreeService_Update_Call struct {
	*mock.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 (*MockTreeService_Update_Call) Run

func (*MockTreeService_Update_Call) RunAndReturn

type MockVehicleService

type MockVehicleService struct {
	mock.Mock
}

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 (*MockVehicleService) GetAll

GetAll provides a mock function with given fields: ctx, query

func (*MockVehicleService) GetAllArchived

func (_m *MockVehicleService) GetAllArchived(ctx context.Context) ([]*entities.Vehicle, error)

GetAllArchived provides a mock function with given fields: ctx

func (*MockVehicleService) GetByID

func (_m *MockVehicleService) GetByID(ctx context.Context, id int32) (*entities.Vehicle, error)

GetByID provides a mock function with given fields: ctx, id

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

func (*MockVehicleService) Update

func (_m *MockVehicleService) Update(ctx context.Context, id int32, updateData *entities.VehicleUpdate) (*entities.Vehicle, error)

Update provides a mock function with given fields: ctx, id, updateData

type MockVehicleService_Archive_Call

type MockVehicleService_Archive_Call struct {
	*mock.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 (*MockVehicleService_Archive_Call) Run

func (*MockVehicleService_Archive_Call) RunAndReturn

type MockVehicleService_Create_Call

type MockVehicleService_Create_Call struct {
	*mock.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 (*MockVehicleService_Create_Call) Run

func (*MockVehicleService_Create_Call) RunAndReturn

type MockVehicleService_Delete_Call

type MockVehicleService_Delete_Call struct {
	*mock.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 (*MockVehicleService_Delete_Call) Run

func (*MockVehicleService_Delete_Call) RunAndReturn

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

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

type MockVehicleService_GetAllArchived_Call struct {
	*mock.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 (*MockVehicleService_GetAllArchived_Call) Run

func (*MockVehicleService_GetAllArchived_Call) RunAndReturn

type MockVehicleService_GetAll_Call

type MockVehicleService_GetAll_Call struct {
	*mock.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 (*MockVehicleService_GetAll_Call) Run

func (*MockVehicleService_GetAll_Call) RunAndReturn

type MockVehicleService_GetByID_Call

type MockVehicleService_GetByID_Call struct {
	*mock.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 (*MockVehicleService_GetByID_Call) Run

func (*MockVehicleService_GetByID_Call) RunAndReturn

type MockVehicleService_GetByPlate_Call

type MockVehicleService_GetByPlate_Call struct {
	*mock.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 (*MockVehicleService_GetByPlate_Call) Run

func (*MockVehicleService_GetByPlate_Call) RunAndReturn

type MockVehicleService_Ready_Call

type MockVehicleService_Ready_Call struct {
	*mock.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 (*MockVehicleService_Ready_Call) Run

func (*MockVehicleService_Ready_Call) RunAndReturn

type MockVehicleService_Update_Call

type MockVehicleService_Update_Call struct {
	*mock.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 (*MockVehicleService_Update_Call) Run

func (*MockVehicleService_Update_Call) RunAndReturn

type MockWateringPlanService

type MockWateringPlanService struct {
	mock.Mock
}

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

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 (*MockWateringPlanService) GetAll

GetAll provides a mock function with given fields: ctx, query

func (*MockWateringPlanService) GetByID

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

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

type MockWateringPlanService_Create_Call struct {
	*mock.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 (*MockWateringPlanService_Create_Call) Run

type MockWateringPlanService_Delete_Call

type MockWateringPlanService_Delete_Call struct {
	*mock.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 (*MockWateringPlanService_Delete_Call) Run

func (*MockWateringPlanService_Delete_Call) RunAndReturn

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

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

UpdateStatuses is a helper method to define mock.On call

  • ctx context.Context

type MockWateringPlanService_GetAll_Call

type MockWateringPlanService_GetAll_Call struct {
	*mock.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 (*MockWateringPlanService_GetAll_Call) Run

func (*MockWateringPlanService_GetAll_Call) RunAndReturn

type MockWateringPlanService_GetByID_Call

type MockWateringPlanService_GetByID_Call struct {
	*mock.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 (*MockWateringPlanService_GetByID_Call) Run

func (*MockWateringPlanService_GetByID_Call) RunAndReturn

type MockWateringPlanService_GetGPXFileStream_Call

type MockWateringPlanService_GetGPXFileStream_Call struct {
	*mock.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 (*MockWateringPlanService_GetGPXFileStream_Call) Run

func (*MockWateringPlanService_GetGPXFileStream_Call) RunAndReturn

type MockWateringPlanService_PreviewRoute_Call

type MockWateringPlanService_PreviewRoute_Call struct {
	*mock.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 (*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

type MockWateringPlanService_Ready_Call

type MockWateringPlanService_Ready_Call struct {
	*mock.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 (*MockWateringPlanService_Ready_Call) Run

func (*MockWateringPlanService_Ready_Call) RunAndReturn

type MockWateringPlanService_UpdateStatuses_Call

type MockWateringPlanService_UpdateStatuses_Call struct {
	*mock.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 (*MockWateringPlanService_UpdateStatuses_Call) Run

func (*MockWateringPlanService_UpdateStatuses_Call) RunAndReturn

type MockWateringPlanService_Update_Call

type MockWateringPlanService_Update_Call struct {
	*mock.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 (*MockWateringPlanService_Update_Call) Run

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL