aboutsummaryrefslogtreecommitdiff
path: root/middleware/session
diff options
context:
space:
mode:
authorAlexander NeonXP Kiryukhin <i@neonxp.ru>2024-07-29 02:47:35 +0300
committerAlexander NeonXP Kiryukhin <i@neonxp.ru>2024-07-29 02:47:35 +0300
commit96e2ce2e9d363a6296f9411ecb00168520258874 (patch)
tree09aa7fffe10eab84ae0edd39e570355984ba0148 /middleware/session
parent12ed72e4e1da181a6c87319a50d3b4142788b4c0 (diff)
Отказ от echo
Diffstat (limited to 'middleware/session')
-rw-r--r--middleware/session/store.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/middleware/session/store.go b/middleware/session/store.go
deleted file mode 100644
index f22c64d..0000000
--- a/middleware/session/store.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package session
-
-import (
- "net/http"
-
- "github.com/gorilla/sessions"
- "github.com/uptrace/bun"
-)
-
-type SessionStore struct {
- orm *bun.DB
-}
-
-// Get should return a cached session.
-func (s *SessionStore) Get(r *http.Request, name string) (*sessions.Session, error) {
- panic("not implemented") // TODO: Implement
-}
-
-// New should create and return a new session.
-//
-// Note that New should never return a nil session, even in the case of
-// an error if using the Registry infrastructure to cache the session.
-func (s *SessionStore) New(r *http.Request, name string) (*sessions.Session, error) {
- panic("not implemented") // TODO: Implement
-}
-
-// Save should persist session to the underlying store implementation.
-func (s *SessionStore) Save(r *http.Request, w http.ResponseWriter, ss *sessions.Session) error {
- panic("not implemented") // TODO: Implement
-}