Documentation
¶
Index ¶
- Variables
- type ObjectType
- type Repository
- func (r *Repository) DeleteSession(ctx context.Context, s session.Session) error
- func (r *Repository) DeleteState(ctx context.Context, stateID string) error
- func (r *Repository) GetAccessTokenForSession(ctx context.Context, sessionID string) (string, error)
- func (r *Repository) GetRefreshTokenForSession(ctx context.Context, sessionID string) (string, error)
- func (r *Repository) GetSessIDByProviderID(ctx context.Context, providerID string) (string, error)
- func (r *Repository) ListSessions(ctx context.Context) ([]session.Session, error)
- func (r *Repository) LoadSession(ctx context.Context, sessionID string) (session.Session, error)
- func (r *Repository) LoadState(ctx context.Context, stateID string) (session.State, error)
- func (r *Repository) StoreSession(ctx context.Context, s session.Session) error
- func (r *Repository) StoreState(ctx context.Context, state session.State) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrGetSessions = errors.New("getting sessions from store") ErrGetState = errors.New("getting state from store") ErrStoreState = errors.New("setting state into storage") ErrStoreSession = errors.New("setting session into storage") ErrGetSession = errors.New("getting session from store") ErrGetSessIDByProviderID = errors.New("getting session ID by provider ID from store") ErrGetAccessToken = errors.New("getting access token from store") ErrGetRefreshToken = errors.New("getting refresh token from store") )
Functions ¶
This section is empty.
Types ¶
type ObjectType ¶ added in v0.8.0
type ObjectType string
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(valkeyClient valkey.Client, prefix string) *Repository
func (*Repository) DeleteSession ¶ added in v0.8.0
func (*Repository) DeleteState ¶ added in v0.1.0
func (r *Repository) DeleteState(ctx context.Context, stateID string) error
func (*Repository) GetAccessTokenForSession ¶ added in v0.8.0
func (*Repository) GetRefreshTokenForSession ¶ added in v0.8.0
func (*Repository) GetSessIDByProviderID ¶ added in v0.8.0
func (*Repository) ListSessions ¶ added in v0.1.0
func (*Repository) LoadSession ¶
func (*Repository) StoreSession ¶
func (*Repository) StoreState ¶
Click to show internal directories.
Click to hide internal directories.