Documentation ¶
Index ¶
Constants ¶
View Source
const (
UserSnapshotFieldName = "user_state"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TokenStore ¶
type TokenStore interface { Create(ctx context.Context, userId, token string, state *model.UserSnapshot, expiry time.Duration) error Get(ctx context.Context, userId, token string) (*model.UserSnapshot, error) GetByUserID(ctx context.Context, userId string) ([]*model.UserSnapshot, error) Update(ctx context.Context, userId, token string, snapshot *model.UserSnapshot) error Delete(ctx context.Context, userId, token string) error DeleteByUserID(ctx context.Context, userId string) error }
func NewTokenStore ¶
func NewTokenStore(rds *redis.Client) TokenStore
Click to show internal directories.
Click to hide internal directories.