Documentation ¶
Index ¶
- func DeleteTokenFromUserCache(ctx context.Context) error
- func DeleteUserInfoFromUserCache(ctx context.Context) error
- func LoadTokenFromUserCache(ctx context.Context) (*oauth2.Token, error)
- func SaveTokenToUserCache(ctx context.Context, token *oauth2.Token) error
- func SaveUserInfoToUserCache(ctx context.Context, userInfo *UserInfo) error
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteTokenFromUserCache ¶
DeleteTokenFromUserCache removes token cache if existing or returns an error
func DeleteUserInfoFromUserCache ¶
DeleteUserInfoFromUserCache removes user info cache if existing or returns an error. An attempt to remove a non-existing cache is a no-op and the function returns nil.
func LoadTokenFromUserCache ¶
LoadTokenFromUserCache gets the token instance from cache or returns an error if something goes wrong while loading or unmarshalling.
func SaveTokenToUserCache ¶
SaveTokenToUserCache saves the provided token to user cache and returns an error if something goes wrong while marshalling or persisting.
Types ¶
Click to show internal directories.
Click to hide internal directories.