Documentation ¶
Index ¶
- func AddHeader(header *http.Header, name string, value interface{})
- func AddValue(query *url.Values, name string, value interface{})
- func CopyHeader(header http.Header) http.Header
- func CopyQuery(query url.Values) url.Values
- func CopyValues(values []string) []string
- func SetDeadline(ctx *context.Context, cancel *context.CancelFunc, deadline time.Time)
- func SetTimeout(ctx *context.Context, cancel *context.CancelFunc, timeout time.Duration)
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHeader ¶
AddHeader creates the given set of headers if needed, and then adds the given header:
func AddValue ¶
AddValue creates the given set of query parameters if needed, an then adds the given parameter.
func CopyHeader ¶
CopyHeader creates a copy of the given set of headers.
func SetDeadline ¶
SetDeadline creates the given context, if needed, and sets the given deadline.
func SetTimeout ¶
SetTimeout creates the given context, if needed, and sets the given timeout.
Types ¶
type TokenResponse ¶
type TokenResponse struct { AccessToken *string `json:"access_token,omitempty"` Error *string `json:"error,omitempty"` ErrorDescription *string `json:"error_description,omitempty"` RefreshToken *string `json:"refresh_token,omitempty"` TokenType *string `json:"token_type,omitempty"` }
TokenResponse is used to unmarshal the sub-set of properties JSON token responses that we need.
Click to show internal directories.
Click to hide internal directories.