Add identifier api (#947)
This commit is contained in:
parent
9e1e681b63
commit
0934a22563
24 changed files with 144 additions and 82 deletions
|
|
@ -92,9 +92,15 @@ type ChargeRater interface {
|
|||
ChargedEnergy() (float64, error)
|
||||
}
|
||||
|
||||
// Identifier identifies a vehicle and is implemented by the charger
|
||||
type Identifier interface {
|
||||
Identify() (string, error)
|
||||
}
|
||||
|
||||
// Vehicle represents the EV and it's battery
|
||||
type Vehicle interface {
|
||||
Battery
|
||||
Identifier
|
||||
Title() string
|
||||
Capacity() int64
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue