Add SessionStore interface
This commit is contained in:
parent
fd6655411b
commit
530acff38c
12
pkg/apis/sessions/interfaces.go
Normal file
12
pkg/apis/sessions/interfaces.go
Normal file
@ -0,0 +1,12 @@
|
||||
package sessions
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// SessionStore is an interface to storing user sessions in the proxy
|
||||
type SessionStore interface {
|
||||
SaveSession(rw http.ResponseWriter, req *http.Request, s *SessionState) error
|
||||
LoadSession(req *http.Request) (*SessionState, error)
|
||||
ClearSession(rw http.ResponseWriter, req *http.Request) error
|
||||
}
|
Loading…
Reference in New Issue
Block a user