summaryrefslogtreecommitdiff
path: root/middleware/session/store.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/session/store.go')
-rw-r--r--middleware/session/store.go17
1 files changed, 4 insertions, 13 deletions
diff --git a/middleware/session/store.go b/middleware/session/store.go
index b74a8aa..a02ba1e 100644
--- a/middleware/session/store.go
+++ b/middleware/session/store.go
@@ -1,18 +1,9 @@
package session
-import (
- "context"
- "errors"
-)
-
-var (
- ErrSessionNotFound = errors.New("session not found")
-)
-
type Store interface {
- Load(ctx context.Context, sessionID string) Value
- Save(ctx context.Context, sessionID string, value Value) error
- Remove(ctx context.Context, sessionID string) error
+ Load(sessionID string) Values
+ Save(sessionID string, value Values) error
+ Remove(sessionID string) error
}
-type Value map[string]any
+type Values map[string]any