pomerium/internal/sessions/store.go
Bobby DeSimone ba14ea246d
*: remove import path comments (#545)
- import path comments are obsoleted by the go.mod file's module statement

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2020-03-16 10:13:47 -07:00

19 lines
526 B
Go

// Package sessions handles the storage, management, and validation
// of pomerium user sessions.
package 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) (string, error)
}