Documentation ¶
Index ¶
Constants ¶
View Source
const ApiURI = "https://api.autonomic.ai/v1beta/telemetry/sources/fordpass"
Variables ¶
View Source
var ( ApplicationID = "667D773E-1BDC-4139-8AD0-2B16474E8DC7" Dyna = "MT_3_30_2352378557_3-0_" + "uuidv4()" + "_0_789_87" )
View Source
var OAuth2Config = &oauth2.Config{ Endpoint: oauth2.Endpoint{ AuthURL: "https://accounts.autonomic.ai/v1/auth/oidc/authorize", TokenURL: "https://accounts.autonomic.ai/v1/auth/oidc/token", }, Scopes: []string{"openid"}, }
https://accounts.autonomic.ai/v1/auth/oidc/.well-known/openid-configuration/
Functions ¶
This section is empty.
Types ¶
type API ¶
API is the Ford api client
func NewAPI ¶
func NewAPI(log *util.Logger, ts oauth2.TokenSource) *API
NewAPI creates a new api client
type FloatValue ¶
type Identity ¶
type Identity struct { *request.Helper oauth2.TokenSource // contains filtered or unexported fields }
func NewIdentity ¶
NewIdentity creates autonomic token source
type MetricsResponse ¶
type MetricsResponse struct { Metrics struct { Position struct { Value struct { Location struct { Lat, Lon float64 } } } Odometer FloatValue XevPlugChargerStatus StringValue XevBatteryRange FloatValue XevBatteryStateOfCharge FloatValue } }
type StringValue ¶
Click to show internal directories.
Click to hide internal directories.