Documentation
¶
Overview ¶
Package loadpoint is a generated GoMock package.
Index ¶
- func AcceptableError(err error) bool
- func PollModeStrings() []string
- type API
- type Controller
- type DynamicConfig
- type MockAPI
- func (m *MockAPI) ActivePhases() int
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) EffectiveMaxPower() float64
- func (m *MockAPI) EffectiveMinPower() float64
- func (m *MockAPI) EffectivePlanId() int
- func (m *MockAPI) EffectivePlanTime() time.Time
- func (m *MockAPI) EffectivePriority() int
- func (m *MockAPI) GetBatteryBoost() int
- func (m *MockAPI) GetChargePower() float64
- func (m *MockAPI) GetChargePowerFlexibility() float64
- func (m *MockAPI) GetChargerName() string
- func (m *MockAPI) GetCircuit() api.Circuit
- func (m *MockAPI) GetCircuitName() string
- func (m *MockAPI) GetDefaultMode() api.ChargeMode
- func (m *MockAPI) GetDefaultVehicle() string
- func (m *MockAPI) GetDisableDelay() time.Duration
- func (m *MockAPI) GetDisableThreshold() float64
- func (m *MockAPI) GetEnableDelay() time.Duration
- func (m *MockAPI) GetEnableThreshold() float64
- func (m *MockAPI) GetLimitEnergy() float64
- func (m *MockAPI) GetLimitSoc() int
- func (m *MockAPI) GetMaxCurrent() float64
- func (m *MockAPI) GetMaxPhaseCurrent() float64
- func (m *MockAPI) GetMeterName() string
- func (m *MockAPI) GetMinCurrent() float64
- func (m *MockAPI) GetMode() api.ChargeMode
- func (m *MockAPI) GetPhases() int
- func (m *MockAPI) GetPhasesConfigured() int
- func (m *MockAPI) GetPlan(targetTime time.Time, requiredDuration time.Duration) (api.Rates, error)
- func (m *MockAPI) GetPlanEnergy() (time.Time, float64)
- func (m *MockAPI) GetPlanGoal() (float64, bool)
- func (m *MockAPI) GetPlanRequiredDuration(goal, maxPower float64) time.Duration
- func (m *MockAPI) GetPriority() int
- func (m *MockAPI) GetRemainingDuration() time.Duration
- func (m *MockAPI) GetRemainingEnergy() float64
- func (m *MockAPI) GetSmartCostLimit() *float64
- func (m *MockAPI) GetSocConfig() SocConfig
- func (m *MockAPI) GetStatus() api.ChargeStatus
- func (m *MockAPI) GetThresholds() ThresholdsConfig
- func (m *MockAPI) GetTitle() string
- func (m *MockAPI) GetVehicle() api.Vehicle
- func (m *MockAPI) HasChargeMeter() bool
- func (m *MockAPI) IsFastChargingActive() bool
- func (m *MockAPI) PublishEffectiveValues()
- func (m *MockAPI) RemoteControl(arg0 string, arg1 RemoteDemand)
- func (m *MockAPI) SetBatteryBoost(enable bool) error
- func (m *MockAPI) SetDefaultMode(arg0 api.ChargeMode)
- func (m *MockAPI) SetDisableDelay(delay time.Duration)
- func (m *MockAPI) SetDisableThreshold(threshold float64)
- func (m *MockAPI) SetEnableDelay(delay time.Duration)
- func (m *MockAPI) SetEnableThreshold(threshold float64)
- func (m *MockAPI) SetLimitEnergy(energy float64)
- func (m *MockAPI) SetLimitSoc(soc int)
- func (m *MockAPI) SetMaxCurrent(arg0 float64) error
- func (m *MockAPI) SetMinCurrent(arg0 float64) error
- func (m *MockAPI) SetMode(arg0 api.ChargeMode)
- func (m *MockAPI) SetPhasesConfigured(arg0 int) error
- func (m *MockAPI) SetPlanEnergy(arg0 time.Time, arg1 float64) error
- func (m *MockAPI) SetPriority(arg0 int)
- func (m *MockAPI) SetSmartCostLimit(limit *float64)
- func (m *MockAPI) SetSocConfig(soc SocConfig)
- func (m *MockAPI) SetThresholds(thresholds ThresholdsConfig)
- func (m *MockAPI) SetTitle(arg0 string)
- func (m *MockAPI) SetVehicle(vehicle api.Vehicle)
- func (m *MockAPI) SocBasedPlanning() bool
- func (m *MockAPI) StartVehicleDetection()
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) ActivePhases() *gomock.Call
- func (mr *MockAPIMockRecorder) EffectiveMaxPower() *gomock.Call
- func (mr *MockAPIMockRecorder) EffectiveMinPower() *gomock.Call
- func (mr *MockAPIMockRecorder) EffectivePlanId() *gomock.Call
- func (mr *MockAPIMockRecorder) EffectivePlanTime() *gomock.Call
- func (mr *MockAPIMockRecorder) EffectivePriority() *gomock.Call
- func (mr *MockAPIMockRecorder) GetBatteryBoost() *gomock.Call
- func (mr *MockAPIMockRecorder) GetChargePower() *gomock.Call
- func (mr *MockAPIMockRecorder) GetChargePowerFlexibility() *gomock.Call
- func (mr *MockAPIMockRecorder) GetChargerName() *gomock.Call
- func (mr *MockAPIMockRecorder) GetCircuit() *gomock.Call
- func (mr *MockAPIMockRecorder) GetCircuitName() *gomock.Call
- func (mr *MockAPIMockRecorder) GetDefaultMode() *gomock.Call
- func (mr *MockAPIMockRecorder) GetDefaultVehicle() *gomock.Call
- func (mr *MockAPIMockRecorder) GetDisableDelay() *gomock.Call
- func (mr *MockAPIMockRecorder) GetDisableThreshold() *gomock.Call
- func (mr *MockAPIMockRecorder) GetEnableDelay() *gomock.Call
- func (mr *MockAPIMockRecorder) GetEnableThreshold() *gomock.Call
- func (mr *MockAPIMockRecorder) GetLimitEnergy() *gomock.Call
- func (mr *MockAPIMockRecorder) GetLimitSoc() *gomock.Call
- func (mr *MockAPIMockRecorder) GetMaxCurrent() *gomock.Call
- func (mr *MockAPIMockRecorder) GetMaxPhaseCurrent() *gomock.Call
- func (mr *MockAPIMockRecorder) GetMeterName() *gomock.Call
- func (mr *MockAPIMockRecorder) GetMinCurrent() *gomock.Call
- func (mr *MockAPIMockRecorder) GetMode() *gomock.Call
- func (mr *MockAPIMockRecorder) GetPhases() *gomock.Call
- func (mr *MockAPIMockRecorder) GetPhasesConfigured() *gomock.Call
- func (mr *MockAPIMockRecorder) GetPlan(targetTime, requiredDuration any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetPlanEnergy() *gomock.Call
- func (mr *MockAPIMockRecorder) GetPlanGoal() *gomock.Call
- func (mr *MockAPIMockRecorder) GetPlanRequiredDuration(goal, maxPower any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetPriority() *gomock.Call
- func (mr *MockAPIMockRecorder) GetRemainingDuration() *gomock.Call
- func (mr *MockAPIMockRecorder) GetRemainingEnergy() *gomock.Call
- func (mr *MockAPIMockRecorder) GetSmartCostLimit() *gomock.Call
- func (mr *MockAPIMockRecorder) GetSocConfig() *gomock.Call
- func (mr *MockAPIMockRecorder) GetStatus() *gomock.Call
- func (mr *MockAPIMockRecorder) GetThresholds() *gomock.Call
- func (mr *MockAPIMockRecorder) GetTitle() *gomock.Call
- func (mr *MockAPIMockRecorder) GetVehicle() *gomock.Call
- func (mr *MockAPIMockRecorder) HasChargeMeter() *gomock.Call
- func (mr *MockAPIMockRecorder) IsFastChargingActive() *gomock.Call
- func (mr *MockAPIMockRecorder) PublishEffectiveValues() *gomock.Call
- func (mr *MockAPIMockRecorder) RemoteControl(arg0, arg1 any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetBatteryBoost(enable any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetDefaultMode(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetDisableDelay(delay any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetDisableThreshold(threshold any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetEnableDelay(delay any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetEnableThreshold(threshold any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetLimitEnergy(energy any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetLimitSoc(soc any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetMaxCurrent(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetMinCurrent(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetMode(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetPhasesConfigured(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetPlanEnergy(arg0, arg1 any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetPriority(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetSmartCostLimit(limit any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetSocConfig(soc any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetThresholds(thresholds any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetTitle(arg0 any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetVehicle(vehicle any) *gomock.Call
- func (mr *MockAPIMockRecorder) SocBasedPlanning() *gomock.Call
- func (mr *MockAPIMockRecorder) StartVehicleDetection() *gomock.Call
- type PollConfig
- type PollMode
- type RemoteDemand
- type SocConfig
- type StaticConfig
- type ThresholdConfig
- type ThresholdsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptableError ¶
func PollModeStrings ¶
func PollModeStrings() []string
PollModeStrings returns a slice of all String values of the enum
Types ¶
type API ¶
type API interface { // GetStatus returns the charging status GetStatus() api.ChargeStatus // GetCharger returns the loadpoint charger GetChargerName() string // GetMeter returns the loadpoint meter GetMeterName() string // GetCircuitName returns the loadpoint circuit name GetCircuitName() string // GetCircuit returns the loadpoint circuit GetCircuit() api.Circuit // GetDefaultVehicle returns the loadpoint default vehicle GetDefaultVehicle() string // GetTitle returns the loadpoint title GetTitle() string // SetTitle sets the loadpoint title SetTitle(string) // GetPriority returns the priority GetPriority() int // SetPriority sets the priority SetPriority(int) // GetMinCurrent returns the min charging current GetMinCurrent() float64 // SetMinCurrent sets the min charging current SetMinCurrent(float64) error // GetMaxCurrent returns the max charging current GetMaxCurrent() float64 // SetMaxCurrent sets the max charging current SetMaxCurrent(float64) error // GetMode returns the current charge mode GetMode() api.ChargeMode // SetMode sets the charge mode SetMode(api.ChargeMode) // GetDefaultMode returns the default charge mode (for reset) GetDefaultMode() api.ChargeMode // SetDefaultMode sets the default charge mode (for reset) SetDefaultMode(api.ChargeMode) // GetPhases returns the enabled phases GetPhases() int // GetPhasesConfigured returns the configured phases GetPhasesConfigured() int // SetPhasesConfigured sets the configured phases SetPhasesConfigured(int) error // ActivePhases returns the active phases for the current vehicle ActivePhases() int // GetLimitSoc returns the session limit soc GetLimitSoc() int // SetLimitSoc sets the session limit soc SetLimitSoc(soc int) // GetLimitEnergy returns the session limit energy GetLimitEnergy() float64 // SetLimitEnergy sets the session limit energy SetLimitEnergy(energy float64) // EffectivePriority returns the effective priority EffectivePriority() int // EffectivePlanId returns the effective plan id EffectivePlanId() int // EffectivePlanTime returns the effective plan time EffectivePlanTime() time.Time // EffectiveMinPower returns the min charging power for the minimum active phases EffectiveMinPower() float64 // EffectiveMaxPower returns the max charging power taking active phases into account EffectiveMaxPower() float64 // PublishEffectiveValues publishes effective values for currently attached vehicle PublishEffectiveValues() // GetPlanEnergy returns the charge plan energy GetPlanEnergy() (time.Time, float64) // SetPlanEnergy sets the charge plan energy SetPlanEnergy(time.Time, float64) error // GetPlanGoal returns the plan goal and if the goal is soc based GetPlanGoal() (float64, bool) // GetPlanRequiredDuration returns required duration of plan to reach the goal from current state GetPlanRequiredDuration(goal, maxPower float64) time.Duration // SocBasedPlanning determines if the planner is soc based SocBasedPlanning() bool // GetPlan creates a charging plan GetPlan(targetTime time.Time, requiredDuration time.Duration) (api.Rates, error) // GetSocConfig returns the soc poll settings GetSocConfig() SocConfig // SetSocConfig sets the soc poll settings SetSocConfig(soc SocConfig) // GetThresholds returns the PV mode threshold settings GetThresholds() ThresholdsConfig // SetThresholds sets the PV mode threshold settings SetThresholds(thresholds ThresholdsConfig) // GetEnableThreshold gets the loadpoint enable threshold GetEnableThreshold() float64 // SetEnableThreshold sets loadpoint enable threshold SetEnableThreshold(threshold float64) // GetDisableThreshold gets the loadpoint disable threshold GetDisableThreshold() float64 // SetDisableThreshold sets loadpoint disable threshold SetDisableThreshold(threshold float64) // GetEnableDelay gets the loadpoint enable delay GetEnableDelay() time.Duration // SetEnableDelay sets loadpoint enable delay SetEnableDelay(delay time.Duration) // GetDisableDelay gets the loadpoint disable delay GetDisableDelay() time.Duration // SetDisableDelay sets loadpoint disable delay SetDisableDelay(delay time.Duration) // GetBatteryBoost returns the battery boost GetBatteryBoost() int // SetBatteryBoost sets the battery boost SetBatteryBoost(enable bool) error // RemoteControl sets remote status demand RemoteControl(string, RemoteDemand) // GetSmartChargingActive determines if smart charging is active GetSmartCostLimit() *float64 // SetSmartCostLimit sets the smart cost limit SetSmartCostLimit(limit *float64) // HasChargeMeter determines if a physical charge meter is attached HasChargeMeter() bool // GetChargePower returns the current charging power GetChargePower() float64 // GetChargePowerFlexibility returns the flexible amount of current charging power GetChargePowerFlexibility() float64 // GetMaxPhaseCurrent returns max phase current GetMaxPhaseCurrent() float64 // IsFastChargingActive indicates if fast charging with maximum power is active IsFastChargingActive() bool // GetRemainingDuration is the estimated remaining charging duration GetRemainingDuration() time.Duration // GetRemainingEnergy is the remaining charge energy in Wh GetRemainingEnergy() float64 // GetVehicle gets the active vehicle GetVehicle() api.Vehicle // SetVehicle sets the active vehicle SetVehicle(vehicle api.Vehicle) // StartVehicleDetection allows triggering vehicle detection for debugging purposes StartVehicleDetection() }
API is the external loadpoint API
type Controller ¶
type Controller interface {
LoadpointControl(API)
}
Controller gives access to loadpoint
type DynamicConfig ¶
type DynamicConfig struct { // dynamic config Title string `json:"title"` DefaultMode string `json:"defaultMode"` Priority int `json:"priority"` PhasesConfigured int `json:"phasesConfigured"` MinCurrent float64 `json:"minCurrent"` MaxCurrent float64 `json:"maxCurrent"` SmartCostLimit *float64 `json:"smartCostLimit"` PlanEnergy float64 `json:"planEnergy"` PlanTime time.Time `json:"planTime"` LimitEnergy float64 `json:"limitEnergy"` LimitSoc int `json:"limitSoc"` Thresholds ThresholdsConfig `json:"thresholds"` Soc SocConfig `json:"soc"` }
func SplitConfig ¶
func (DynamicConfig) Apply ¶
func (payload DynamicConfig) Apply(lp API) error
type MockAPI ¶
type MockAPI struct {
// contains filtered or unexported fields
}
MockAPI is a mock of API interface.
func NewMockAPI ¶
func NewMockAPI(ctrl *gomock.Controller) *MockAPI
NewMockAPI creates a new mock instance.
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPI) EffectiveMaxPower ¶
EffectiveMaxPower mocks base method.
func (*MockAPI) EffectiveMinPower ¶
EffectiveMinPower mocks base method.
func (*MockAPI) EffectivePlanId ¶
EffectivePlanId mocks base method.
func (*MockAPI) EffectivePlanTime ¶
EffectivePlanTime mocks base method.
func (*MockAPI) EffectivePriority ¶
EffectivePriority mocks base method.
func (*MockAPI) GetBatteryBoost ¶
GetBatteryBoost mocks base method.
func (*MockAPI) GetChargePower ¶
GetChargePower mocks base method.
func (*MockAPI) GetChargePowerFlexibility ¶
GetChargePowerFlexibility mocks base method.
func (*MockAPI) GetChargerName ¶
GetChargerName mocks base method.
func (*MockAPI) GetCircuit ¶
GetCircuit mocks base method.
func (*MockAPI) GetCircuitName ¶
GetCircuitName mocks base method.
func (*MockAPI) GetDefaultMode ¶
func (m *MockAPI) GetDefaultMode() api.ChargeMode
GetDefaultMode mocks base method.
func (*MockAPI) GetDefaultVehicle ¶
GetDefaultVehicle mocks base method.
func (*MockAPI) GetDisableDelay ¶
GetDisableDelay mocks base method.
func (*MockAPI) GetDisableThreshold ¶
GetDisableThreshold mocks base method.
func (*MockAPI) GetEnableDelay ¶
GetEnableDelay mocks base method.
func (*MockAPI) GetEnableThreshold ¶
GetEnableThreshold mocks base method.
func (*MockAPI) GetLimitEnergy ¶
GetLimitEnergy mocks base method.
func (*MockAPI) GetMaxCurrent ¶
GetMaxCurrent mocks base method.
func (*MockAPI) GetMaxPhaseCurrent ¶
GetMaxPhaseCurrent mocks base method.
func (*MockAPI) GetMeterName ¶
GetMeterName mocks base method.
func (*MockAPI) GetMinCurrent ¶
GetMinCurrent mocks base method.
func (*MockAPI) GetPhasesConfigured ¶
GetPhasesConfigured mocks base method.
func (*MockAPI) GetPlanEnergy ¶
GetPlanEnergy mocks base method.
func (*MockAPI) GetPlanGoal ¶
GetPlanGoal mocks base method.
func (*MockAPI) GetPlanRequiredDuration ¶
GetPlanRequiredDuration mocks base method.
func (*MockAPI) GetRemainingDuration ¶
GetRemainingDuration mocks base method.
func (*MockAPI) GetRemainingEnergy ¶
GetRemainingEnergy mocks base method.
func (*MockAPI) GetSmartCostLimit ¶
GetSmartCostLimit mocks base method.
func (*MockAPI) GetSocConfig ¶
GetSocConfig mocks base method.
func (*MockAPI) GetStatus ¶
func (m *MockAPI) GetStatus() api.ChargeStatus
GetStatus mocks base method.
func (*MockAPI) GetThresholds ¶
func (m *MockAPI) GetThresholds() ThresholdsConfig
GetThresholds mocks base method.
func (*MockAPI) GetVehicle ¶
GetVehicle mocks base method.
func (*MockAPI) HasChargeMeter ¶
HasChargeMeter mocks base method.
func (*MockAPI) IsFastChargingActive ¶
IsFastChargingActive mocks base method.
func (*MockAPI) PublishEffectiveValues ¶
func (m *MockAPI) PublishEffectiveValues()
PublishEffectiveValues mocks base method.
func (*MockAPI) RemoteControl ¶
func (m *MockAPI) RemoteControl(arg0 string, arg1 RemoteDemand)
RemoteControl mocks base method.
func (*MockAPI) SetBatteryBoost ¶
SetBatteryBoost mocks base method.
func (*MockAPI) SetDefaultMode ¶
func (m *MockAPI) SetDefaultMode(arg0 api.ChargeMode)
SetDefaultMode mocks base method.
func (*MockAPI) SetDisableDelay ¶
SetDisableDelay mocks base method.
func (*MockAPI) SetDisableThreshold ¶
SetDisableThreshold mocks base method.
func (*MockAPI) SetEnableDelay ¶
SetEnableDelay mocks base method.
func (*MockAPI) SetEnableThreshold ¶
SetEnableThreshold mocks base method.
func (*MockAPI) SetLimitEnergy ¶
SetLimitEnergy mocks base method.
func (*MockAPI) SetMaxCurrent ¶
SetMaxCurrent mocks base method.
func (*MockAPI) SetMinCurrent ¶
SetMinCurrent mocks base method.
func (*MockAPI) SetPhasesConfigured ¶
SetPhasesConfigured mocks base method.
func (*MockAPI) SetPlanEnergy ¶
SetPlanEnergy mocks base method.
func (*MockAPI) SetPriority ¶
SetPriority mocks base method.
func (*MockAPI) SetSmartCostLimit ¶
SetSmartCostLimit mocks base method.
func (*MockAPI) SetSocConfig ¶
SetSocConfig mocks base method.
func (*MockAPI) SetThresholds ¶
func (m *MockAPI) SetThresholds(thresholds ThresholdsConfig)
SetThresholds mocks base method.
func (*MockAPI) SetVehicle ¶
SetVehicle mocks base method.
func (*MockAPI) SocBasedPlanning ¶
SocBasedPlanning mocks base method.
func (*MockAPI) StartVehicleDetection ¶
func (m *MockAPI) StartVehicleDetection()
StartVehicleDetection mocks base method.
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI.
func (*MockAPIMockRecorder) ActivePhases ¶
func (mr *MockAPIMockRecorder) ActivePhases() *gomock.Call
ActivePhases indicates an expected call of ActivePhases.
func (*MockAPIMockRecorder) EffectiveMaxPower ¶
func (mr *MockAPIMockRecorder) EffectiveMaxPower() *gomock.Call
EffectiveMaxPower indicates an expected call of EffectiveMaxPower.
func (*MockAPIMockRecorder) EffectiveMinPower ¶
func (mr *MockAPIMockRecorder) EffectiveMinPower() *gomock.Call
EffectiveMinPower indicates an expected call of EffectiveMinPower.
func (*MockAPIMockRecorder) EffectivePlanId ¶
func (mr *MockAPIMockRecorder) EffectivePlanId() *gomock.Call
EffectivePlanId indicates an expected call of EffectivePlanId.
func (*MockAPIMockRecorder) EffectivePlanTime ¶
func (mr *MockAPIMockRecorder) EffectivePlanTime() *gomock.Call
EffectivePlanTime indicates an expected call of EffectivePlanTime.
func (*MockAPIMockRecorder) EffectivePriority ¶
func (mr *MockAPIMockRecorder) EffectivePriority() *gomock.Call
EffectivePriority indicates an expected call of EffectivePriority.
func (*MockAPIMockRecorder) GetBatteryBoost ¶
func (mr *MockAPIMockRecorder) GetBatteryBoost() *gomock.Call
GetBatteryBoost indicates an expected call of GetBatteryBoost.
func (*MockAPIMockRecorder) GetChargePower ¶
func (mr *MockAPIMockRecorder) GetChargePower() *gomock.Call
GetChargePower indicates an expected call of GetChargePower.
func (*MockAPIMockRecorder) GetChargePowerFlexibility ¶
func (mr *MockAPIMockRecorder) GetChargePowerFlexibility() *gomock.Call
GetChargePowerFlexibility indicates an expected call of GetChargePowerFlexibility.
func (*MockAPIMockRecorder) GetChargerName ¶
func (mr *MockAPIMockRecorder) GetChargerName() *gomock.Call
GetChargerName indicates an expected call of GetChargerName.
func (*MockAPIMockRecorder) GetCircuit ¶
func (mr *MockAPIMockRecorder) GetCircuit() *gomock.Call
GetCircuit indicates an expected call of GetCircuit.
func (*MockAPIMockRecorder) GetCircuitName ¶
func (mr *MockAPIMockRecorder) GetCircuitName() *gomock.Call
GetCircuitName indicates an expected call of GetCircuitName.
func (*MockAPIMockRecorder) GetDefaultMode ¶
func (mr *MockAPIMockRecorder) GetDefaultMode() *gomock.Call
GetDefaultMode indicates an expected call of GetDefaultMode.
func (*MockAPIMockRecorder) GetDefaultVehicle ¶
func (mr *MockAPIMockRecorder) GetDefaultVehicle() *gomock.Call
GetDefaultVehicle indicates an expected call of GetDefaultVehicle.
func (*MockAPIMockRecorder) GetDisableDelay ¶
func (mr *MockAPIMockRecorder) GetDisableDelay() *gomock.Call
GetDisableDelay indicates an expected call of GetDisableDelay.
func (*MockAPIMockRecorder) GetDisableThreshold ¶
func (mr *MockAPIMockRecorder) GetDisableThreshold() *gomock.Call
GetDisableThreshold indicates an expected call of GetDisableThreshold.
func (*MockAPIMockRecorder) GetEnableDelay ¶
func (mr *MockAPIMockRecorder) GetEnableDelay() *gomock.Call
GetEnableDelay indicates an expected call of GetEnableDelay.
func (*MockAPIMockRecorder) GetEnableThreshold ¶
func (mr *MockAPIMockRecorder) GetEnableThreshold() *gomock.Call
GetEnableThreshold indicates an expected call of GetEnableThreshold.
func (*MockAPIMockRecorder) GetLimitEnergy ¶
func (mr *MockAPIMockRecorder) GetLimitEnergy() *gomock.Call
GetLimitEnergy indicates an expected call of GetLimitEnergy.
func (*MockAPIMockRecorder) GetLimitSoc ¶
func (mr *MockAPIMockRecorder) GetLimitSoc() *gomock.Call
GetLimitSoc indicates an expected call of GetLimitSoc.
func (*MockAPIMockRecorder) GetMaxCurrent ¶
func (mr *MockAPIMockRecorder) GetMaxCurrent() *gomock.Call
GetMaxCurrent indicates an expected call of GetMaxCurrent.
func (*MockAPIMockRecorder) GetMaxPhaseCurrent ¶
func (mr *MockAPIMockRecorder) GetMaxPhaseCurrent() *gomock.Call
GetMaxPhaseCurrent indicates an expected call of GetMaxPhaseCurrent.
func (*MockAPIMockRecorder) GetMeterName ¶
func (mr *MockAPIMockRecorder) GetMeterName() *gomock.Call
GetMeterName indicates an expected call of GetMeterName.
func (*MockAPIMockRecorder) GetMinCurrent ¶
func (mr *MockAPIMockRecorder) GetMinCurrent() *gomock.Call
GetMinCurrent indicates an expected call of GetMinCurrent.
func (*MockAPIMockRecorder) GetMode ¶
func (mr *MockAPIMockRecorder) GetMode() *gomock.Call
GetMode indicates an expected call of GetMode.
func (*MockAPIMockRecorder) GetPhases ¶
func (mr *MockAPIMockRecorder) GetPhases() *gomock.Call
GetPhases indicates an expected call of GetPhases.
func (*MockAPIMockRecorder) GetPhasesConfigured ¶
func (mr *MockAPIMockRecorder) GetPhasesConfigured() *gomock.Call
GetPhasesConfigured indicates an expected call of GetPhasesConfigured.
func (*MockAPIMockRecorder) GetPlan ¶
func (mr *MockAPIMockRecorder) GetPlan(targetTime, requiredDuration any) *gomock.Call
GetPlan indicates an expected call of GetPlan.
func (*MockAPIMockRecorder) GetPlanEnergy ¶
func (mr *MockAPIMockRecorder) GetPlanEnergy() *gomock.Call
GetPlanEnergy indicates an expected call of GetPlanEnergy.
func (*MockAPIMockRecorder) GetPlanGoal ¶
func (mr *MockAPIMockRecorder) GetPlanGoal() *gomock.Call
GetPlanGoal indicates an expected call of GetPlanGoal.
func (*MockAPIMockRecorder) GetPlanRequiredDuration ¶
func (mr *MockAPIMockRecorder) GetPlanRequiredDuration(goal, maxPower any) *gomock.Call
GetPlanRequiredDuration indicates an expected call of GetPlanRequiredDuration.
func (*MockAPIMockRecorder) GetPriority ¶
func (mr *MockAPIMockRecorder) GetPriority() *gomock.Call
GetPriority indicates an expected call of GetPriority.
func (*MockAPIMockRecorder) GetRemainingDuration ¶
func (mr *MockAPIMockRecorder) GetRemainingDuration() *gomock.Call
GetRemainingDuration indicates an expected call of GetRemainingDuration.
func (*MockAPIMockRecorder) GetRemainingEnergy ¶
func (mr *MockAPIMockRecorder) GetRemainingEnergy() *gomock.Call
GetRemainingEnergy indicates an expected call of GetRemainingEnergy.
func (*MockAPIMockRecorder) GetSmartCostLimit ¶
func (mr *MockAPIMockRecorder) GetSmartCostLimit() *gomock.Call
GetSmartCostLimit indicates an expected call of GetSmartCostLimit.
func (*MockAPIMockRecorder) GetSocConfig ¶
func (mr *MockAPIMockRecorder) GetSocConfig() *gomock.Call
GetSocConfig indicates an expected call of GetSocConfig.
func (*MockAPIMockRecorder) GetStatus ¶
func (mr *MockAPIMockRecorder) GetStatus() *gomock.Call
GetStatus indicates an expected call of GetStatus.
func (*MockAPIMockRecorder) GetThresholds ¶
func (mr *MockAPIMockRecorder) GetThresholds() *gomock.Call
GetThresholds indicates an expected call of GetThresholds.
func (*MockAPIMockRecorder) GetTitle ¶
func (mr *MockAPIMockRecorder) GetTitle() *gomock.Call
GetTitle indicates an expected call of GetTitle.
func (*MockAPIMockRecorder) GetVehicle ¶
func (mr *MockAPIMockRecorder) GetVehicle() *gomock.Call
GetVehicle indicates an expected call of GetVehicle.
func (*MockAPIMockRecorder) HasChargeMeter ¶
func (mr *MockAPIMockRecorder) HasChargeMeter() *gomock.Call
HasChargeMeter indicates an expected call of HasChargeMeter.
func (*MockAPIMockRecorder) IsFastChargingActive ¶
func (mr *MockAPIMockRecorder) IsFastChargingActive() *gomock.Call
IsFastChargingActive indicates an expected call of IsFastChargingActive.
func (*MockAPIMockRecorder) PublishEffectiveValues ¶
func (mr *MockAPIMockRecorder) PublishEffectiveValues() *gomock.Call
PublishEffectiveValues indicates an expected call of PublishEffectiveValues.
func (*MockAPIMockRecorder) RemoteControl ¶
func (mr *MockAPIMockRecorder) RemoteControl(arg0, arg1 any) *gomock.Call
RemoteControl indicates an expected call of RemoteControl.
func (*MockAPIMockRecorder) SetBatteryBoost ¶
func (mr *MockAPIMockRecorder) SetBatteryBoost(enable any) *gomock.Call
SetBatteryBoost indicates an expected call of SetBatteryBoost.
func (*MockAPIMockRecorder) SetDefaultMode ¶
func (mr *MockAPIMockRecorder) SetDefaultMode(arg0 any) *gomock.Call
SetDefaultMode indicates an expected call of SetDefaultMode.
func (*MockAPIMockRecorder) SetDisableDelay ¶
func (mr *MockAPIMockRecorder) SetDisableDelay(delay any) *gomock.Call
SetDisableDelay indicates an expected call of SetDisableDelay.
func (*MockAPIMockRecorder) SetDisableThreshold ¶
func (mr *MockAPIMockRecorder) SetDisableThreshold(threshold any) *gomock.Call
SetDisableThreshold indicates an expected call of SetDisableThreshold.
func (*MockAPIMockRecorder) SetEnableDelay ¶
func (mr *MockAPIMockRecorder) SetEnableDelay(delay any) *gomock.Call
SetEnableDelay indicates an expected call of SetEnableDelay.
func (*MockAPIMockRecorder) SetEnableThreshold ¶
func (mr *MockAPIMockRecorder) SetEnableThreshold(threshold any) *gomock.Call
SetEnableThreshold indicates an expected call of SetEnableThreshold.
func (*MockAPIMockRecorder) SetLimitEnergy ¶
func (mr *MockAPIMockRecorder) SetLimitEnergy(energy any) *gomock.Call
SetLimitEnergy indicates an expected call of SetLimitEnergy.
func (*MockAPIMockRecorder) SetLimitSoc ¶
func (mr *MockAPIMockRecorder) SetLimitSoc(soc any) *gomock.Call
SetLimitSoc indicates an expected call of SetLimitSoc.
func (*MockAPIMockRecorder) SetMaxCurrent ¶
func (mr *MockAPIMockRecorder) SetMaxCurrent(arg0 any) *gomock.Call
SetMaxCurrent indicates an expected call of SetMaxCurrent.
func (*MockAPIMockRecorder) SetMinCurrent ¶
func (mr *MockAPIMockRecorder) SetMinCurrent(arg0 any) *gomock.Call
SetMinCurrent indicates an expected call of SetMinCurrent.
func (*MockAPIMockRecorder) SetMode ¶
func (mr *MockAPIMockRecorder) SetMode(arg0 any) *gomock.Call
SetMode indicates an expected call of SetMode.
func (*MockAPIMockRecorder) SetPhasesConfigured ¶
func (mr *MockAPIMockRecorder) SetPhasesConfigured(arg0 any) *gomock.Call
SetPhasesConfigured indicates an expected call of SetPhasesConfigured.
func (*MockAPIMockRecorder) SetPlanEnergy ¶
func (mr *MockAPIMockRecorder) SetPlanEnergy(arg0, arg1 any) *gomock.Call
SetPlanEnergy indicates an expected call of SetPlanEnergy.
func (*MockAPIMockRecorder) SetPriority ¶
func (mr *MockAPIMockRecorder) SetPriority(arg0 any) *gomock.Call
SetPriority indicates an expected call of SetPriority.
func (*MockAPIMockRecorder) SetSmartCostLimit ¶
func (mr *MockAPIMockRecorder) SetSmartCostLimit(limit any) *gomock.Call
SetSmartCostLimit indicates an expected call of SetSmartCostLimit.
func (*MockAPIMockRecorder) SetSocConfig ¶
func (mr *MockAPIMockRecorder) SetSocConfig(soc any) *gomock.Call
SetSocConfig indicates an expected call of SetSocConfig.
func (*MockAPIMockRecorder) SetThresholds ¶
func (mr *MockAPIMockRecorder) SetThresholds(thresholds any) *gomock.Call
SetThresholds indicates an expected call of SetThresholds.
func (*MockAPIMockRecorder) SetTitle ¶
func (mr *MockAPIMockRecorder) SetTitle(arg0 any) *gomock.Call
SetTitle indicates an expected call of SetTitle.
func (*MockAPIMockRecorder) SetVehicle ¶
func (mr *MockAPIMockRecorder) SetVehicle(vehicle any) *gomock.Call
SetVehicle indicates an expected call of SetVehicle.
func (*MockAPIMockRecorder) SocBasedPlanning ¶
func (mr *MockAPIMockRecorder) SocBasedPlanning() *gomock.Call
SocBasedPlanning indicates an expected call of SocBasedPlanning.
func (*MockAPIMockRecorder) StartVehicleDetection ¶
func (mr *MockAPIMockRecorder) StartVehicleDetection() *gomock.Call
StartVehicleDetection indicates an expected call of StartVehicleDetection.
type PollConfig ¶
type PollConfig struct { Mode PollMode `json:"mode"` // polling mode charging (default), connected, always Interval time.Duration `json:"interval"` // interval when not charging }
PollConfig defines the vehicle polling mode and interval
type PollMode ¶
type PollMode int
func PollModeString ¶
PollModeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func PollModeValues ¶
func PollModeValues() []PollMode
PollModeValues returns all values of the enum
func (PollMode) IsAPollMode ¶
IsAPollMode returns "true" if the value is listed in the enum definition. "false" otherwise
func (PollMode) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface for PollMode
func (*PollMode) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface for PollMode
type RemoteDemand ¶
type RemoteDemand string
RemoteDemand defines external status demand
const ( RemoteEnable RemoteDemand = "" RemoteHardDisable RemoteDemand = "hard" RemoteSoftDisable RemoteDemand = "soft" )
remote status demand definition
func RemoteDemandString ¶
func RemoteDemandString(demand string) (RemoteDemand, error)
RemoteDemandString converts string to RemoteDemand
type SocConfig ¶
type SocConfig struct { Poll PollConfig `json:"poll"` Estimate *bool `json:"estimate"` }
SocConfig defines soc settings, estimation and update behavior
type StaticConfig ¶
type ThresholdConfig ¶
type ThresholdConfig struct { Delay time.Duration `json:"delay"` Threshold float64 `json:"threshold"` }
ThresholdConfig defines enable/disable hysteresis parameters
type ThresholdsConfig ¶
type ThresholdsConfig struct { Enable ThresholdConfig `json:"enable"` Disable ThresholdConfig `json:"disable"` }
ThresholdsConfig defines pv mode hysteresis parameters