Moving error handlers to the cache implementations.

This commit is contained in:
Burcu Dogan
2014-05-21 15:56:44 +02:00
parent ef33919251
commit 0476447419
4 changed files with 46 additions and 14 deletions

View File

@@ -64,6 +64,7 @@ type TokenFetcher interface {
// If the implementation doesn't know how to retrieve a new token,
// it returns an error.
FetchToken(existing *Token) (*Token, error)
// Cache returns the Cache implementation to read/persist user tokens.
Cache() Cache
}