2019-05-06 13:33:04 +00:00
|
|
|
package sessions
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
|
|
|
// SessionStore is an interface to storing user sessions in the proxy
|
|
|
|
type SessionStore interface {
|
2019-05-08 15:36:28 +00:00
|
|
|
Save(rw http.ResponseWriter, req *http.Request, s *SessionState) error
|
|
|
|
Load(req *http.Request) (*SessionState, error)
|
|
|
|
Clear(rw http.ResponseWriter, req *http.Request) error
|
2019-05-06 13:33:04 +00:00
|
|
|
}
|