From 96e2ce2e9d363a6296f9411ecb00168520258874 Mon Sep 17 00:00:00 2001 From: Alexander NeonXP Kiryukhin Date: Mon, 29 Jul 2024 02:47:35 +0300 Subject: Отказ от echo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- middleware/session/store.go | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 middleware/session/store.go (limited to 'middleware/session') 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 -} -- cgit v1.2.3