Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type HttpTokenRetriever ¶
type HttpTokenRetriever struct {
// contains filtered or unexported fields
}
func NewHttpTokenRetriever ¶
func NewHttpTokenRetriever(httpDoer net.HttpDoer, apiUrl string, responseChecker net.ResponseChecker) *HttpTokenRetriever
func (*HttpTokenRetriever) RetrieveToken ¶
func (retriever *HttpTokenRetriever) RetrieveToken(clientId string, clientSecret string) (*AccessToken, error)
type TokenCache ¶
type TokenCache struct {
// contains filtered or unexported fields
}
func NewHttpTokenCache ¶
func NewHttpTokenCache(tokenRetriever TokenRetriever) *TokenCache
func (*TokenCache) RetrieveToken ¶
func (cache *TokenCache) RetrieveToken(clientId string, clientSecret string) (*AccessToken, error)
type TokenRetriever ¶
type TokenRetriever interface {
RetrieveToken(clientId string, clientSecret string) (*AccessToken, error)
}
Click to show internal directories.
Click to hide internal directories.