Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BaseURI is the Mercedes api base URI BaseURI = "https://api.mercedes-benz.com/vehicledata/v2" SandboxBaseURI = "https://api.mercedes-benz.com/vehicledata_tryout/v2" )
View Source
const OAuthURI = "https://ssoalpha.dvb.corpinter.net/v1"
https://ssoalpha.dvb.corpinter.net/v1/.well-known/openid-configuration
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API is the Mercedes api client
type EVResponse ¶
type Identity ¶
type Identity struct { *ReuseTokenSource // contains filtered or unexported fields }
func NewIdentity ¶
TODO SessionSecret from config/persistence
func (*Identity) LoginHandler ¶
func (v *Identity) LoginHandler() http.HandlerFunc
func (*Identity) LogoutHandler ¶
func (v *Identity) LogoutHandler() http.HandlerFunc
func (*Identity) SetCallbackParams ¶
type IdentityOption ¶
func WithToken ¶
func WithToken(t *oauth2.Token) IdentityOption
WithToken provides an oauth2.Token to the client for auth.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the vehicle api
func NewProvider ¶
NewProvider creates a vehicle api provider
type ReuseTokenSource ¶
type ReuseTokenSource struct {
// contains filtered or unexported fields
}
func (*ReuseTokenSource) Apply ¶
func (ts *ReuseTokenSource) Apply(t *oauth2.Token)
Click to show internal directories.
Click to hide internal directories.