Documentation ¶
Index ¶
- type Client
- func (c *Client) Close(ctx context.Context) error
- func (c *Client) DeleteJWTAccessToken(ctx context.Context, accessTokenID string) error
- func (c *Client) DeleteJWTRefreshToken(ctx context.Context, refreshTokenID string) error
- func (c *Client) GetJWTAccessToken(ctx context.Context, accessTokenID string) (string, error)
- func (c *Client) GetJWTRefreshToken(ctx context.Context, refreshTokenID string) (string, error)
- func (c *Client) RedisClient() *redis.Client
- func (c *Client) SetJWTAccessToken(ctx context.Context, accessTokenID, userID string, expire time.Duration) error
- func (c *Client) SetJWTRefreshToken(ctx context.Context, refreshTokenID string, userID string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a redis client
func (*Client) DeleteJWTAccessToken ¶
DeleteJWTAccessToken deletes an access token from redis.
func (*Client) DeleteJWTRefreshToken ¶
DeleteJWTRefreshToken deletes a refresh token from redis.
func (*Client) GetJWTAccessToken ¶
GetJWTAccessToken retrieves an access token from redis.
func (*Client) GetJWTRefreshToken ¶
GetJWTRefreshToken retrieves an refresh token from redis.
func (*Client) RedisClient ¶ added in v0.0.4
func (c *Client) RedisClient() *redis.Client
RedisClient returns the redis client
Click to show internal directories.
Click to hide internal directories.