MCPcopy
hub / github.com/oauth2-proxy/oauth2-proxy / Store

Interface Store

pkg/sessions/persistence/interfaces.go:13–19  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

11// Implementing this interface allows it to easily use the persistence.Manager
12// for session ticket + encryption details.
13type Store interface {
14 Save(context.Context, string, []byte, time.Duration) error
15 Load(context.Context, string) ([]byte, error)
16 Clear(context.Context, string) error
17 Lock(key string) sessions.Lock
18 VerifyConnection(context.Context) error
19}

Implementers 2

MockStorepkg/sessions/tests/mock_store.go
SessionStorepkg/sessions/redis/redis_store.go

Calls

no outgoing calls

Tested by

no test coverage detected