Documentation ¶
Index ¶
- Constants
- Variables
- type API
- type ConcurrentRequest
- type Identity
- type Provider
- func (v *Provider) FinishTime() (time.Time, 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
Constants ¶
View Source
const ( StatRunning = iota StatValid StatInvalid )
View Source
const ( Target40 = 1 Target50 = 2 Target60 = 3 Target70 = 4 Target80 = 5 Target90 = 6 Target100 = 7 )
Variables ¶
View Source
var TargetSocVals = [...]int{0, 40, 50, 60, 70, 80, 90, 100}
Functions ¶
This section is empty.
Types ¶
type API ¶
API is an api.Vehicle implementation for SAIC cars
type ConcurrentRequest ¶
type ConcurrentRequest struct { Status int Result requests.ChargeStatus }
type Identity ¶
type Identity struct { *request.Helper TokenSource oauth2.TokenSource User string Password string // contains filtered or unexported fields }
func NewIdentity ¶
NewIdentity creates SAIC identity
func (*Identity) RefreshToken ¶
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) FinishTime ¶
FinishTime implements the api.VehicleFinishTimer interface
func (*Provider) GetLimitSoc ¶
GetLimitSoc implements the api.SocLimiter interface
Click to show internal directories.
Click to hide internal directories.