chore: api structure

This commit is contained in:
andig 2022-08-29 11:35:03 +02:00
parent 24ecaf7790
commit 753a4da076

View file

@ -15,8 +15,6 @@ type Controller interface {
type API interface {
// Name returns the defined loadpoint name
Name() string
// HasChargeMeter determines if a physical charge meter is attached
HasChargeMeter() bool
//
// status
@ -55,6 +53,8 @@ type API interface {
// power and energy
//
// HasChargeMeter determines if a physical charge meter is attached
HasChargeMeter() bool
// GetChargePower returns the current charging power
GetChargePower() float64
// GetMinCurrent returns the min charging current