Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) CreateGrant(ctx context.Context) (*DeviceGrant, error)
- func (c *Client) Do(req *http.Request) (*http.Response, error)
- func (c *Client) GetDeviceTokenResponse(ctx context.Context, dg *DeviceGrant) (*DeviceToken, error)
- func (c *Client) RefreshToken(ctx context.Context, refreshToken string) (*DeviceToken, error)
- type DeviceGrant
- type DeviceToken
- type ErrorResponse
- type GrantRequestBody
- type RefreshTokenRequestBody
- type TokenRequestBody
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAuthorizationPending = errors.New("authorization pending")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateGrant ¶
func (c *Client) CreateGrant(ctx context.Context) (*DeviceGrant, error)
func (*Client) GetDeviceTokenResponse ¶
func (c *Client) GetDeviceTokenResponse(ctx context.Context, dg *DeviceGrant) (*DeviceToken, error)
func (*Client) RefreshToken ¶
type DeviceGrant ¶
type DeviceToken ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type GrantRequestBody ¶
type GrantRequestBody struct {
ClientID string `json:"client_id"`
}
type RefreshTokenRequestBody ¶
type TokenRequestBody ¶
Click to show internal directories.
Click to hide internal directories.