blob: b74a8aaaf90e1af12f63afebead037afd7f888f6 (
plain) (
tree)
|
|
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
}
type Value map[string]any
|