Documentation ¶
Index ¶
- type ConnectorMock
- func (m *ConnectorMock) CalculateSessionAvgEnergyConsumption() float64
- func (m *ConnectorMock) GetConnectorId() int
- func (m *ConnectorMock) GetEvseId() int
- func (m *ConnectorMock) GetMaxChargingTime() int
- func (m *ConnectorMock) GetPowerMeter() powerMeter.PowerMeter
- func (m *ConnectorMock) GetReservationId() int
- func (m *ConnectorMock) GetStatus() (core.ChargePointStatus, core.ChargePointErrorCode)
- func (m *ConnectorMock) GetTagId() string
- func (m *ConnectorMock) GetTransactionId() string
- func (m *ConnectorMock) IsAvailable() bool
- func (m *ConnectorMock) IsCharging() bool
- func (m *ConnectorMock) IsPreparing() bool
- func (m *ConnectorMock) IsReserved() bool
- func (m *ConnectorMock) IsUnavailable() bool
- func (m *ConnectorMock) RemoveReservation() error
- func (m *ConnectorMock) ReserveConnector(reservationId int, tagId string) error
- func (m *ConnectorMock) ResumeCharging(session session.Session) (error, int)
- func (m *ConnectorMock) SamplePowerMeter(measurands []types.Measurand)
- func (m *ConnectorMock) SetMeterValuesChannel(notificationChannel chan<- models.MeterValueNotification)
- func (m *ConnectorMock) SetNotificationChannel(notificationChannel chan<- rxgo.Item)
- func (m *ConnectorMock) SetStatus(status core.ChargePointStatus, errCode core.ChargePointErrorCode)
- func (m *ConnectorMock) StartCharging(transactionId string, tagId string) error
- func (m *ConnectorMock) StopCharging(reason core.Reason) error
- type DisplayMock
- type IndicatorMock
- type ManagerMock
- func (o *ManagerMock) AddConnector(c connector.Connector) error
- func (o *ManagerMock) AddConnectorFromSettings(maxChargingTime int, c *settings.Connector) error
- func (o *ManagerMock) AddConnectorsFromConfiguration(maxChargingTime int, c []*settings.Connector) error
- func (o *ManagerMock) FindAvailableConnector() connector.Connector
- func (o *ManagerMock) FindConnector(evseId, connectorID int) connector.Connector
- func (o *ManagerMock) FindConnectorWithReservationId(reservationId int) connector.Connector
- func (o *ManagerMock) FindConnectorWithTagId(tagId string) connector.Connector
- func (o *ManagerMock) FindConnectorWithTransactionId(transactionId string) connector.Connector
- func (o *ManagerMock) GetConnectors() []connector.Connector
- func (o *ManagerMock) RestoreConnectorStatus(s *settings.Connector) error
- func (o *ManagerMock) SetMeterValuesChannel(notificationChannel chan models.MeterValueNotification)
- func (o *ManagerMock) SetNotificationChannel(notificationChannel chan rxgo.Item)
- func (o *ManagerMock) StartChargingConnector(evseId, connectorID int, tagId, transactionId string) error
- func (o *ManagerMock) StopAllConnectors(reason core.Reason) error
- func (o *ManagerMock) StopChargingConnector(tagId, transactionId string, reason core.Reason) error
- type PowerMeterMock
- func (p *PowerMeterMock) GetCurrent() float64
- func (p *PowerMeterMock) GetEnergy() float64
- func (p *PowerMeterMock) GetPower() float64
- func (p *PowerMeterMock) GetRMSCurrent() float64
- func (p *PowerMeterMock) GetRMSVoltage() float64
- func (p *PowerMeterMock) GetVoltage() float64
- func (p *PowerMeterMock) Reset()
- type ReaderMock
- type RelayMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectorMock ¶
func (*ConnectorMock) CalculateSessionAvgEnergyConsumption ¶
func (m *ConnectorMock) CalculateSessionAvgEnergyConsumption() float64
func (*ConnectorMock) GetConnectorId ¶
func (m *ConnectorMock) GetConnectorId() int
func (*ConnectorMock) GetEvseId ¶
func (m *ConnectorMock) GetEvseId() int
func (*ConnectorMock) GetMaxChargingTime ¶
func (m *ConnectorMock) GetMaxChargingTime() int
func (*ConnectorMock) GetPowerMeter ¶
func (m *ConnectorMock) GetPowerMeter() powerMeter.PowerMeter
func (*ConnectorMock) GetReservationId ¶
func (m *ConnectorMock) GetReservationId() int
func (*ConnectorMock) GetStatus ¶
func (m *ConnectorMock) GetStatus() (core.ChargePointStatus, core.ChargePointErrorCode)
func (*ConnectorMock) GetTagId ¶
func (m *ConnectorMock) GetTagId() string
func (*ConnectorMock) GetTransactionId ¶
func (m *ConnectorMock) GetTransactionId() string
func (*ConnectorMock) IsAvailable ¶
func (m *ConnectorMock) IsAvailable() bool
func (*ConnectorMock) IsCharging ¶
func (m *ConnectorMock) IsCharging() bool
func (*ConnectorMock) IsPreparing ¶
func (m *ConnectorMock) IsPreparing() bool
func (*ConnectorMock) IsReserved ¶
func (m *ConnectorMock) IsReserved() bool
func (*ConnectorMock) IsUnavailable ¶
func (m *ConnectorMock) IsUnavailable() bool
func (*ConnectorMock) RemoveReservation ¶
func (m *ConnectorMock) RemoveReservation() error
func (*ConnectorMock) ReserveConnector ¶
func (m *ConnectorMock) ReserveConnector(reservationId int, tagId string) error
func (*ConnectorMock) ResumeCharging ¶
func (m *ConnectorMock) ResumeCharging(session session.Session) (error, int)
func (*ConnectorMock) SamplePowerMeter ¶
func (m *ConnectorMock) SamplePowerMeter(measurands []types.Measurand)
func (*ConnectorMock) SetMeterValuesChannel ¶
func (m *ConnectorMock) SetMeterValuesChannel(notificationChannel chan<- models.MeterValueNotification)
func (*ConnectorMock) SetNotificationChannel ¶
func (m *ConnectorMock) SetNotificationChannel(notificationChannel chan<- rxgo.Item)
func (*ConnectorMock) SetStatus ¶
func (m *ConnectorMock) SetStatus(status core.ChargePointStatus, errCode core.ChargePointErrorCode)
func (*ConnectorMock) StartCharging ¶
func (m *ConnectorMock) StartCharging(transactionId string, tagId string) error
func (*ConnectorMock) StopCharging ¶
func (m *ConnectorMock) StopCharging(reason core.Reason) error
type DisplayMock ¶
func (*DisplayMock) Cleanup ¶
func (l *DisplayMock) Cleanup()
func (*DisplayMock) Clear ¶
func (l *DisplayMock) Clear()
func (*DisplayMock) DisplayMessage ¶
func (l *DisplayMock) DisplayMessage(message display.LCDMessage)
func (*DisplayMock) GetLcdChannel ¶
func (l *DisplayMock) GetLcdChannel() chan<- display.LCDMessage
func (*DisplayMock) ListenForMessages ¶
func (l *DisplayMock) ListenForMessages(ctx context.Context)
type IndicatorMock ¶
func (*IndicatorMock) Blink ¶
func (i *IndicatorMock) Blink(index int, times int, colorHex uint32) error
func (*IndicatorMock) Cleanup ¶
func (i *IndicatorMock) Cleanup()
func (*IndicatorMock) DisplayColor ¶
func (i *IndicatorMock) DisplayColor(index int, colorHex uint32) error
type ManagerMock ¶
func (*ManagerMock) AddConnector ¶
func (o *ManagerMock) AddConnector(c connector.Connector) error
func (*ManagerMock) AddConnectorFromSettings ¶
func (o *ManagerMock) AddConnectorFromSettings(maxChargingTime int, c *settings.Connector) error
func (*ManagerMock) AddConnectorsFromConfiguration ¶
func (o *ManagerMock) AddConnectorsFromConfiguration(maxChargingTime int, c []*settings.Connector) error
func (*ManagerMock) FindAvailableConnector ¶
func (o *ManagerMock) FindAvailableConnector() connector.Connector
func (*ManagerMock) FindConnector ¶
func (o *ManagerMock) FindConnector(evseId, connectorID int) connector.Connector
func (*ManagerMock) FindConnectorWithReservationId ¶
func (o *ManagerMock) FindConnectorWithReservationId(reservationId int) connector.Connector
func (*ManagerMock) FindConnectorWithTagId ¶
func (o *ManagerMock) FindConnectorWithTagId(tagId string) connector.Connector
func (*ManagerMock) FindConnectorWithTransactionId ¶
func (o *ManagerMock) FindConnectorWithTransactionId(transactionId string) connector.Connector
func (*ManagerMock) GetConnectors ¶
func (o *ManagerMock) GetConnectors() []connector.Connector
func (*ManagerMock) RestoreConnectorStatus ¶
func (o *ManagerMock) RestoreConnectorStatus(s *settings.Connector) error
func (*ManagerMock) SetMeterValuesChannel ¶
func (o *ManagerMock) SetMeterValuesChannel(notificationChannel chan models.MeterValueNotification)
func (*ManagerMock) SetNotificationChannel ¶
func (o *ManagerMock) SetNotificationChannel(notificationChannel chan rxgo.Item)
func (*ManagerMock) StartChargingConnector ¶
func (o *ManagerMock) StartChargingConnector(evseId, connectorID int, tagId, transactionId string) error
func (*ManagerMock) StopAllConnectors ¶
func (o *ManagerMock) StopAllConnectors(reason core.Reason) error
func (*ManagerMock) StopChargingConnector ¶
func (o *ManagerMock) StopChargingConnector(tagId, transactionId string, reason core.Reason) error
type PowerMeterMock ¶
func (*PowerMeterMock) GetCurrent ¶
func (p *PowerMeterMock) GetCurrent() float64
func (*PowerMeterMock) GetEnergy ¶
func (p *PowerMeterMock) GetEnergy() float64
func (*PowerMeterMock) GetPower ¶
func (p *PowerMeterMock) GetPower() float64
func (*PowerMeterMock) GetRMSCurrent ¶
func (p *PowerMeterMock) GetRMSCurrent() float64
func (*PowerMeterMock) GetRMSVoltage ¶
func (p *PowerMeterMock) GetRMSVoltage() float64
func (*PowerMeterMock) GetVoltage ¶
func (p *PowerMeterMock) GetVoltage() float64
func (*PowerMeterMock) Reset ¶
func (p *PowerMeterMock) Reset()
type ReaderMock ¶
func (*ReaderMock) Cleanup ¶
func (r *ReaderMock) Cleanup()
func (*ReaderMock) GetTagChannel ¶
func (r *ReaderMock) GetTagChannel() <-chan string
func (*ReaderMock) ListenForTags ¶
func (r *ReaderMock) ListenForTags(ctx context.Context)
func (*ReaderMock) Reset ¶
func (r *ReaderMock) Reset()
Click to show internal directories.
Click to hide internal directories.