Documentation ¶
Index ¶
- func CreateSessionHandlerFunc(sessionCache Cache) http.HandlerFunc
- func DeleteAllSessionsHandlerFunc(cache Cache) http.HandlerFunc
- func GetByEmailSessionHandlerFunc(sessionCache Cache, getVarsFunc GetVarsFunc) http.HandlerFunc
- func GetByIDSessionHandlerFunc(sessionCache Cache, getVarsFunc GetVarsFunc) http.HandlerFunc
- type API
- type AuthHandler
- type Cache
- type GetVarsFunc
- type SessionUpdater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSessionHandlerFunc ¶ added in v0.2.0
func CreateSessionHandlerFunc(sessionCache Cache) http.HandlerFunc
CreateSessionHandlerFunc returns HTTP HandlerFunc for handling POST requests to create sessions.
func DeleteAllSessionsHandlerFunc ¶ added in v0.2.0
func DeleteAllSessionsHandlerFunc(cache Cache) http.HandlerFunc
func GetByEmailSessionHandlerFunc ¶ added in v1.0.0
func GetByEmailSessionHandlerFunc(sessionCache Cache, getVarsFunc GetVarsFunc) http.HandlerFunc
GetByEmailSessionHandlerFunc returns a HTTP HandlerFunc that attempts to retrieve an existing session by Email from the cache
func GetByIDSessionHandlerFunc ¶ added in v0.2.0
func GetByIDSessionHandlerFunc(sessionCache Cache, getVarsFunc GetVarsFunc) http.HandlerFunc
GetByIDSessionHandlerFunc returns a HTTP HandlerFunc that attempts to retrieve an existing session by ID from the cache
Types ¶
type AuthHandler ¶ added in v0.2.0
type AuthHandler interface {
Require(required auth.Permissions, handler http.HandlerFunc) http.HandlerFunc
}
AuthHandler interface for adding auth to endpoints
type Cache ¶ added in v0.2.0
type Cache cache.SessionCache
type GetVarsFunc ¶ added in v0.2.0
GetVarsFunc is a helper function that returns a map of request variables and parameters
Click to show internal directories.
Click to hide internal directories.