mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-15 01:02:54 +02:00
* deployment: throw away golanglint-ci defaults Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
19 lines
585 B
Go
19 lines
585 B
Go
// Package sessions handles the storage, management, and validation
|
|
// of pomerium user sessions.
|
|
package sessions // import "github.com/pomerium/pomerium/internal/sessions"
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// SessionStore defines an interface for loading, saving, and clearing a session.
|
|
type SessionStore interface {
|
|
SessionLoader
|
|
ClearSession(http.ResponseWriter, *http.Request)
|
|
SaveSession(http.ResponseWriter, *http.Request, interface{}) error
|
|
}
|
|
|
|
// SessionLoader defines an interface for loading a session.
|
|
type SessionLoader interface {
|
|
LoadSession(*http.Request) (*State, error)
|
|
}
|