api: let Identify return multiple identities (#32949)
This commit is contained in:
parent
0ae85295dc
commit
0be2e0d803
51 changed files with 318 additions and 200 deletions
|
|
@ -130,9 +130,10 @@ type ChargeRater interface {
|
|||
ChargedEnergy() (float64, error)
|
||||
}
|
||||
|
||||
// Identifier identifies a vehicle and is implemented by the charger
|
||||
// Identifier identifies a vehicle and is implemented by the charger.
|
||||
// A charger may know more than one identity, e.g. an RFID tag and a vehicle id.
|
||||
type Identifier interface {
|
||||
Identify() (string, error)
|
||||
Identify() ([]string, error)
|
||||
}
|
||||
|
||||
// Authorizer authorizes a charging session by supplying RFID credentials
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue