summaryrefslogtreecommitdiff
path: root/middleware/session/memstore.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/session/memstore.go')
-rw-r--r--middleware/session/memstore.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/middleware/session/memstore.go b/middleware/session/memstore.go
deleted file mode 100644
index d8cb958..0000000
--- a/middleware/session/memstore.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package session
-
-import (
- "sync"
-)
-
-type MemoryStore struct {
- store sync.Map
-}
-
-func (s *MemoryStore) Load(sessionID string) Values {
- val, ok := s.store.Load(sessionID)
- if ok {
- return val.(Values)
- }
-
- return Values{}
-}
-
-func (s *MemoryStore) Save(sessionID string, value Values) error {
- s.store.Store(sessionID, value)
-
- return nil
-}
-
-func (s *MemoryStore) Remove(sessionID string) error {
- s.store.Delete(sessionID)
-
- return nil
-}