Documentation ¶
Index ¶
- Constants
- func DeleteSessionCookie(w http.ResponseWriter, r *http.Request)
- func ExtractAllowedSearchParams(u *url.URL) url.Values
- func GetSessionID(r *http.Request) (string, error)
- func RequestLogger(next http.Handler) http.Handler
- func SetSessionCookie(w http.ResponseWriter, r *http.Request, session model.Session)
- type Auth
- type SessionManager
- type UserManager
Constants ¶
View Source
const ( AuthCookie = "chitchat-session" RequestedURLParam = "requested-url" )
Variables ¶
This section is empty.
Functions ¶
func DeleteSessionCookie ¶
func DeleteSessionCookie(w http.ResponseWriter, r *http.Request)
func SetSessionCookie ¶
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewAuthMiddleware ¶
func NewAuthMiddleware(userManager UserManager, sessionManager SessionManager) Auth
func (Auth) RedirectIfLoggedIn ¶
type SessionManager ¶
Click to show internal directories.
Click to hide internal directories.