Add ChargeRemainder api (#325)
This commit is contained in:
parent
a24caac73d
commit
90e23dadcc
5 changed files with 75 additions and 1 deletions
|
|
@ -81,3 +81,8 @@ type Vehicle interface {
|
|||
Capacity() int64
|
||||
ChargeState() (float64, error)
|
||||
}
|
||||
|
||||
// ChargeRemainder provides current charge cycle duration
|
||||
type ChargeRemainder interface {
|
||||
RemainingTime() (time.Duration, error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue