blob: f22c64ddf660618c21a043938c6c2949e5d8b0cf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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
}
|