Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { // Logger Repository Repository }
Configuration settings for service
type Repository ¶
type Repository interface { SaveToken(ctx context.Context, tkn *token.Token) error GetToken(ctx context.Context, guid, accessToken string) (*token.Token, error) ChangeToken(ctx context.Context, guid, oldAccessToken, refreshToken, accessToken string) error RemoveToken(ctx context.Context, guid, accessToken string) error RemoveAllTokens(ctx context.Context, guid string) error }
Repository represents database handler
Click to show internal directories.
Click to hide internal directories.