Documentation ¶
Index ¶
- func NewAudiFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewBMWFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewCarWingsFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewCitroenFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewCloudFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewConfigurableFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewFordFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewFromConfig(typ string, other map[string]interface{}) (v api.Vehicle, err error)
- func NewHyundaiFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewIDFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewKiaFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewNissanFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewNiuFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewOpelFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewPeugeotFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewPorscheFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewRenaultFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewSeatFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewSkodaFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewTeslaFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewVWFromConfig(other map[string]interface{}) (api.Vehicle, error)
- func NewVolvoFromConfig(other map[string]interface{}) (api.Vehicle, error)
- type Audi
- type BMW
- type CarWings
- type Cloud
- type Ford
- type Hyundai
- type ID
- type Kia
- type Nissan
- type Niu
- type PSA
- type Porsche
- type Renault
- func (m Renault) Capacity() int64
- func (v *Renault) Climater() (active bool, outsideTemp float64, targetTemp float64, err error)
- func (v *Renault) FinishTime() (time.Time, error)
- func (v *Renault) Range() (int64, error)
- func (v *Renault) SoC() (float64, error)
- func (v *Renault) Status() (api.ChargeStatus, error)
- func (m Renault) Title() string
- type Seat
- type Skoda
- type Tesla
- func (v *Tesla) CacheReset() error
- func (m Tesla) Capacity() int64
- func (v *Tesla) ChargedEnergy() (float64, error)
- func (v *Tesla) FinishTime() (time.Time, error)
- func (v *Tesla) LoadpointMode(mode api.ChargeMode, lpCS api.ChargeStatus) error
- func (v *Tesla) Range() (int64, error)
- func (v *Tesla) SoC() (float64, error)
- func (v *Tesla) StartCharge() error
- func (v *Tesla) Status() (api.ChargeStatus, error)
- func (v *Tesla) StatusExt(lpCS api.ChargeStatus, lpMode api.ChargeMode, lpEnabled bool) (api.ChargeStatus, error)
- func (v *Tesla) StopCharge() error
- func (m Tesla) Title() string
- type VW
- type Vehicle
- type Volvo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAudiFromConfig ¶
NewAudiFromConfig creates a new vehicle
func NewBMWFromConfig ¶
NewBMWFromConfig creates a new vehicle
func NewCarWingsFromConfig ¶
NewCarWingsFromConfig creates a new vehicle
func NewCitroenFromConfig ¶
NewCitroenFromConfig creates a new vehicle
func NewCloudFromConfig ¶
NewCloudFromConfig creates a new vehicle
func NewConfigurableFromConfig ¶
NewConfigurableFromConfig creates a new Vehicle
func NewFordFromConfig ¶
NewFordFromConfig creates a new vehicle
func NewFromConfig ¶
NewFromConfig creates vehicle from configuration
func NewHyundaiFromConfig ¶
NewHyundaiFromConfig creates a new Vehicle
func NewIDFromConfig ¶
NewIDFromConfig creates a new vehicle
func NewKiaFromConfig ¶
NewKiaFromConfig creates a new Vehicle
func NewNissanFromConfig ¶
NewNissanFromConfig creates a new vehicle
func NewNiuFromConfig ¶
NewFordFromConfig creates a new vehicle
func NewOpelFromConfig ¶
NewOpelFromConfig creates a new vehicle
func NewPeugeotFromConfig ¶
NewPeugeotFromConfig creates a new vehicle
func NewPorscheFromConfig ¶
NewPorscheFromConfig creates a new vehicle
func NewRenaultFromConfig ¶
NewRenaultFromConfig creates a new vehicle
func NewSeatFromConfig ¶
NewSeatFromConfig creates a new vehicle
func NewSkodaFromConfig ¶
NewSkodaFromConfig creates a new vehicle
func NewTeslaFromConfig ¶
NewTeslaFromConfig creates a new Tesla vehicle
func NewVWFromConfig ¶
NewVWFromConfig creates a new vehicle
Types ¶
type Audi ¶
type Audi struct { *vw.Provider // provides the api implementations // contains filtered or unexported fields }
Audi is an api.Vehicle implementation for Audi cars
type BMW ¶
BMW is an api.Vehicle implementation for BMW cars
type CarWings ¶
type CarWings struct {
// contains filtered or unexported fields
}
CarWings is an api.Vehicle implementation for CarWings cars
func (CarWings) Capacity ¶
func (m CarWings) Capacity() int64
Capacity implements the Vehicle.Capacity interface
type Cloud ¶
type Cloud struct {
// contains filtered or unexported fields
}
Cloud is an api.Vehicle implementation for Cloud cars
type Ford ¶
Ford is an api.Vehicle implementation for Ford cars
func (Ford) Capacity ¶
func (m Ford) Capacity() int64
Capacity implements the Vehicle.Capacity interface
type Hyundai ¶
Hyundai is an api.Vehicle implementation
type ID ¶
type ID struct { *id.Provider // provides the api implementations // contains filtered or unexported fields }
ID is an api.Vehicle implementation for ID cars
type Kia ¶
Kia is an api.Vehicle implementation
type Nissan ¶
Nissan is an api.Vehicle implementation for Nissan cars
type Niu ¶
Niu is an api.Vehicle implementation for Niu vehicles
func (Niu) Capacity ¶
func (m Niu) Capacity() int64
Capacity implements the Vehicle.Capacity interface
type PSA ¶
type PSA struct { *psa.Provider // provides the api implementations // contains filtered or unexported fields }
PSA is an api.Vehicle implementation for PSA cars
type Porsche ¶
type Porsche struct {
// contains filtered or unexported fields
}
Porsche is an api.Vehicle implementation for Porsche cars
type Renault ¶
Renault is an api.Vehicle implementation for Renault cars
func (Renault) Capacity ¶
func (m Renault) Capacity() int64
Capacity implements the Vehicle.Capacity interface
func (*Renault) FinishTime ¶
FinishTime implements the api.VehicleFinishTimer interface
type Seat ¶
type Seat struct { *vw.Provider // provides the api implementations // contains filtered or unexported fields }
Seat is an api.Vehicle implementation for Seat cars
type Skoda ¶
type Skoda struct { *vw.Provider // provides the api implementations // contains filtered or unexported fields }
Skoda is an api.Vehicle implementation for Skoda cars
type Tesla ¶
type Tesla struct {
// contains filtered or unexported fields
}
Tesla is an api.Vehicle implementation for Tesla cars
func (*Tesla) CacheReset ¶
func (Tesla) Capacity ¶
func (m Tesla) Capacity() int64
Capacity implements the Vehicle.Capacity interface
func (*Tesla) ChargedEnergy ¶
ChargedEnergy implements the api.ChargeRater interface
func (*Tesla) FinishTime ¶
FinishTime implements the api.VehicleFinishTimer interface
func (*Tesla) LoadpointMode ¶
func (v *Tesla) LoadpointMode(mode api.ChargeMode, lpCS api.ChargeStatus) error
func (*Tesla) StartCharge ¶
StartCharge implements the api.StopCharge interface
func (*Tesla) Status ¶
func (v *Tesla) Status() (api.ChargeStatus, error)
Status implements the api.ChargeState interface
func (*Tesla) StatusExt ¶
func (v *Tesla) StatusExt(lpCS api.ChargeStatus, lpMode api.ChargeMode, lpEnabled bool) (api.ChargeStatus, error)
StatusExt implements the api.ChargeStateExt interface
func (*Tesla) StopCharge ¶
StopCharge implements the api.StopCharge interface
type VW ¶
type VW struct { *vw.Provider // provides the api implementations // contains filtered or unexported fields }
VW is an api.Vehicle implementation for VW cars
type Vehicle ¶
type Vehicle struct {
// contains filtered or unexported fields
}
Vehicle is an api.Vehicle implementation with configurable getters and setters.
func (Vehicle) Capacity ¶
func (m Vehicle) Capacity() int64
Capacity implements the Vehicle.Capacity interface
type Volvo ¶
Volvo is an api.Vehicle implementation for Volvo cars
func (Volvo) Capacity ¶
func (m Volvo) Capacity() int64
Capacity implements the Vehicle.Capacity interface
func (*Volvo) FinishTime ¶
FinishTime implements the VehicleFinishTimer interface