Documentation ¶
Index ¶
- type Actuator
- type ChamberRepo
- type Configurator
- type Controller
- func (_m *Controller) Delete(id string) error
- func (_m *Controller) Get(id string) (*chamber.Chamber, error)
- func (_m *Controller) GetAll() ([]*chamber.Chamber, error)
- func (_m *Controller) Save(c *chamber.Chamber) error
- func (_m *Controller) StartFermentation(ctx context.Context, chamberID string, step string) error
- func (_m *Controller) StopFermentation(chamberID string) error
- type FileReader
- type Hydrometer
- type Metrics
- type Service
- type SettingsRepo
- type Thermometer
- type ThermometerAndHydrometer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actuator ¶
Actuator is an autogenerated mock type for the Actuator type
type ChamberRepo ¶
ChamberRepo is an autogenerated mock type for the ChamberRepo type
func (*ChamberRepo) Delete ¶
func (_m *ChamberRepo) Delete(id string) error
Delete provides a mock function with given fields: id
func (*ChamberRepo) Get ¶
func (_m *ChamberRepo) Get(id string) (*chamber.Chamber, error)
Get provides a mock function with given fields: id
type Configurator ¶
Configurator is an autogenerated mock type for the Configurator type
func (*Configurator) CreateDs18b20 ¶
func (_m *Configurator) CreateDs18b20(thermometerID string) (device.Thermometer, error)
CreateDs18b20 provides a mock function with given fields: thermometerID
func (*Configurator) CreateGPIOActuator ¶
func (_m *Configurator) CreateGPIOActuator(pin string) (device.Actuator, error)
CreateGPIOActuator provides a mock function with given fields: pin
func (*Configurator) CreateTilt ¶
func (_m *Configurator) CreateTilt(color tilt.Color) (device.ThermometerAndHydrometer, error)
CreateTilt provides a mock function with given fields: color
type Controller ¶
Controller is an autogenerated mock type for the Controller type
func NewController ¶ added in v0.1.1
func NewController(t mockConstructorTestingTNewController) *Controller
NewController creates a new instance of Controller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Controller) Delete ¶
func (_m *Controller) Delete(id string) error
Delete provides a mock function with given fields: id
func (*Controller) Get ¶
func (_m *Controller) Get(id string) (*chamber.Chamber, error)
Get provides a mock function with given fields: id
func (*Controller) GetAll ¶
func (_m *Controller) GetAll() ([]*chamber.Chamber, error)
GetAll provides a mock function with given fields:
func (*Controller) Save ¶
func (_m *Controller) Save(c *chamber.Chamber) error
Save provides a mock function with given fields: c
func (*Controller) StartFermentation ¶
StartFermentation provides a mock function with given fields: ctx, chamberID, step
func (*Controller) StopFermentation ¶
func (_m *Controller) StopFermentation(chamberID string) error
StopFermentation provides a mock function with given fields: chamberID
type FileReader ¶
FileReader is an autogenerated mock type for the FileReader type
type Hydrometer ¶
Hydrometer is an autogenerated mock type for the Hydrometer type
func (*Hydrometer) GetGravity ¶
func (_m *Hydrometer) GetGravity() (float64, error)
GetGravity provides a mock function with given fields:
func (*Hydrometer) GetID ¶
func (_m *Hydrometer) GetID() string
GetID provides a mock function with given fields:
type Metrics ¶
Metrics is an autogenerated mock type for the Metrics type
type Service ¶
Service is an autogenerated mock type for the Service type
func (*Service) GetAllBatchSummaries ¶
func (_m *Service) GetAllBatchSummaries(ctx context.Context) ([]brewfather.BatchSummary, error)
GetAll provides a mock function with given fields: ctx
func (*Service) GetBatchDetail ¶
func (_m *Service) GetBatchDetail(ctx context.Context, id string) (*brewfather.BatchDetail, error)
Get provides a mock function with given fields: ctx, id
type SettingsRepo ¶
Repo is an autogenerated mock type for the Repo type
type Thermometer ¶
Thermometer is an autogenerated mock type for the Thermometer type
func (*Thermometer) GetID ¶
func (_m *Thermometer) GetID() string
GetID provides a mock function with given fields:
func (*Thermometer) GetTemperature ¶
func (_m *Thermometer) GetTemperature() (float64, error)
GetTemperature provides a mock function with given fields:
type ThermometerAndHydrometer ¶
ThermometerAndHydrometer is an autogenerated mock type for the ThermometerAndHydrometer type
func (*ThermometerAndHydrometer) GetGravity ¶
func (_m *ThermometerAndHydrometer) GetGravity() (float64, error)
GetGravity provides a mock function with given fields:
func (*ThermometerAndHydrometer) GetID ¶
func (_m *ThermometerAndHydrometer) GetID() string
GetID provides a mock function with given fields:
func (*ThermometerAndHydrometer) GetTemperature ¶
func (_m *ThermometerAndHydrometer) GetTemperature() (float64, error)
GetTemperature provides a mock function with given fields: