Documentation
¶
Index ¶
- func NewPostgresGormDB(t *testing.T) (*gorm.DB, sqlmock.Sqlmock)
- type APIRestPorts
- type AnyTime
- type ClimateDataRepositoryPort
- type ClimateDataServicePorts
- type GetLatestClimateDataUseCasePort
- type HandlerMessage
- type IOTDeviceRepositoryPort
- type IOTDeviceServicePort
- type MQTTPorts
- type SaveClimateDataUseCasePort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIRestPorts ¶
APIRestPorts is an autogenerated mock type for the APIRestPorts type
func NewAPIRestPorts ¶
func NewAPIRestPorts(t interface { mock.TestingT Cleanup(func()) }) *APIRestPorts
NewAPIRestPorts creates a new instance of APIRestPorts. 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 (*APIRestPorts) RunServer ¶
func (_m *APIRestPorts) RunServer()
RunServer provides a mock function with given fields:
type ClimateDataRepositoryPort ¶
ClimateDataRepositoryPort is an autogenerated mock type for the ClimateDataRepositoryPort type
func NewClimateDataRepositoryPort ¶
func NewClimateDataRepositoryPort(t interface { mock.TestingT Cleanup(func()) }) *ClimateDataRepositoryPort
NewClimateDataRepositoryPort creates a new instance of ClimateDataRepositoryPort. 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 (*ClimateDataRepositoryPort) CreateClimateData ¶
func (_m *ClimateDataRepositoryPort) CreateClimateData(ctx context.Context, entity *entities.ClimateDataEntity) (string, error)
CreateClimateData provides a mock function with given fields: ctx, entity
type ClimateDataServicePorts ¶
ClimateDataServicePorts is an autogenerated mock type for the ClimateDataServicePorts type
func NewClimateDataServicePorts ¶
func NewClimateDataServicePorts(t interface { mock.TestingT Cleanup(func()) }) *ClimateDataServicePorts
NewClimateDataServicePorts creates a new instance of ClimateDataServicePorts. 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 (*ClimateDataServicePorts) GetLatestClimateData ¶
func (_m *ClimateDataServicePorts) GetLatestClimateData() (*entities.ClimateDataEntity, error)
GetLatestClimateData provides a mock function with given fields:
type GetLatestClimateDataUseCasePort ¶
GetLatestClimateDataUseCasePort is an autogenerated mock type for the GetLatestClimateDataUseCasePort type
func NewGetLatestClimateDataUseCasePort ¶
func NewGetLatestClimateDataUseCasePort(t interface { mock.TestingT Cleanup(func()) }) *GetLatestClimateDataUseCasePort
NewGetLatestClimateDataUseCasePort creates a new instance of GetLatestClimateDataUseCasePort. 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 (*GetLatestClimateDataUseCasePort) Execute ¶
func (_m *GetLatestClimateDataUseCasePort) Execute(ctx context.Context) (*entities.ClimateDataEntity, error)
Execute provides a mock function with given fields: ctx
type HandlerMessage ¶
HandlerMessage is an autogenerated mock type for the HandlerMessage type
func NewHandlerMessage ¶
func NewHandlerMessage(t interface { mock.TestingT Cleanup(func()) }) *HandlerMessage
NewHandlerMessage creates a new instance of HandlerMessage. 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.
type IOTDeviceRepositoryPort ¶
IOTDeviceRepositoryPort is an autogenerated mock type for the IOTDeviceRepositoryPort type
func NewIOTDeviceRepositoryPort ¶
func NewIOTDeviceRepositoryPort(t interface { mock.TestingT Cleanup(func()) }) *IOTDeviceRepositoryPort
NewIOTDeviceRepositoryPort creates a new instance of IOTDeviceRepositoryPort. 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 (*IOTDeviceRepositoryPort) CreateIOTDevice ¶
func (_m *IOTDeviceRepositoryPort) CreateIOTDevice(ctx context.Context, entity *entities.IOTDeviceEntity) (string, error)
CreateIOTDevice provides a mock function with given fields: ctx, entity
type IOTDeviceServicePort ¶
IOTDeviceServicePort is an autogenerated mock type for the IOTDeviceServicePort type
func NewIOTDeviceServicePort ¶
func NewIOTDeviceServicePort(t interface { mock.TestingT Cleanup(func()) }) *IOTDeviceServicePort
NewIOTDeviceServicePort creates a new instance of IOTDeviceServicePort. 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 (*IOTDeviceServicePort) GetIOTDeviceByMACAddress ¶
func (_m *IOTDeviceServicePort) GetIOTDeviceByMACAddress(ctx context.Context, macAddress string) (*entities.IOTDeviceEntity, error)
GetIOTDeviceByMACAddress provides a mock function with given fields: ctx, macAddress
type MQTTPorts ¶
MQTTPorts is an autogenerated mock type for the MQTTPorts type
func NewMQTTPorts ¶
NewMQTTPorts creates a new instance of MQTTPorts. 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 (*MQTTPorts) RunConsumer ¶
RunConsumer provides a mock function with given fields: topic
type SaveClimateDataUseCasePort ¶
SaveClimateDataUseCasePort is an autogenerated mock type for the SaveClimateDataUseCasePort type
func NewSaveClimateDataUseCasePort ¶
func NewSaveClimateDataUseCasePort(t interface { mock.TestingT Cleanup(func()) }) *SaveClimateDataUseCasePort
NewSaveClimateDataUseCasePort creates a new instance of SaveClimateDataUseCasePort. 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.