Documentation ¶
Index ¶
- Constants
- type API
- type Authenticate
- type Event
- type Identity
- type Provider
- func (v *Provider) ChargeEnable(enable bool) error
- func (v *Provider) GetLimitSoc() (int64, error)
- func (v *Provider) Odometer() (float64, error)
- func (v *Provider) Range() (int64, error)
- func (v *Provider) Soc() (float64, error)
- func (v *Provider) Status() (api.ChargeStatus, error)
- func (v *Provider) WakeUp() error
- type Region
- type Token
- type Vehicle
- type VehicleStatus
Constants ¶
View Source
const ( CHARGE_START = "start-charging" CHARGE_STOP = "stop-charging" DOOR_LOCK = "door-lock" LIGHT_FLASH = "light-flash" REMOTE_SERVICE_BASE_URL = "eadrax-vrccs/v3/presentation/remote-commands" VEHICLE_CHARGING_BASE_URL = "eadrax-crccs/v1/vehicles" )
View Source
const (
RedirectURI = "com.bmw.connected://oauth"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an api.Vehicle implementation for BMW cars
type Authenticate ¶
type Authenticate struct {
ClientID, State string
}
type Identity ¶
func NewIdentity ¶
NewIdentity creates BMW identity
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the vehicle api
func NewProvider ¶
NewProvider creates a vehicle api provider
func (*Provider) ChargeEnable ¶
ChargeEnable implements the api.ChargeController interface
func (*Provider) GetLimitSoc ¶
GetLimitSoc implements the api.SocLimiter interface
type Region ¶
type Region struct {
AuthURI, CocoApiURI string
Token
Authenticate
}
Click to show internal directories.
Click to hide internal directories.