mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-05-31 23:19:50 +02:00
* feat: readiness check * fix: no need for query param * docs: add a note * chore: move the readyness check to its own endpoint * docs(cr): add godoc Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
20 lines
543 B
Go
20 lines
543 B
Go
package persistence
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
|
|
"github.com/oauth2-proxy/oauth2-proxy/v7/pkg/apis/sessions"
|
|
)
|
|
|
|
// Store is used for persistent session stores (IE not Cookie)
|
|
// Implementing this interface allows it to easily use the persistence.Manager
|
|
// for session ticket + encryption details.
|
|
type Store interface {
|
|
Save(context.Context, string, []byte, time.Duration) error
|
|
Load(context.Context, string) ([]byte, error)
|
|
Clear(context.Context, string) error
|
|
Lock(key string) sessions.Lock
|
|
VerifyConnection(context.Context) error
|
|
}
|