Documentation
¶
Index ¶
Constants ¶
View Source
const (
SessionName = "session"
)
Variables ¶
This section is empty.
Functions ¶
func NewCookieStore ¶
func NewCookieStore(opts SessionOptions) *sessions.CookieStore
func RequireAuth ¶
func RequireAuth(handlerFunc http.HandlerFunc, auth *AuthService) http.HandlerFunc
Types ¶
type AuthService ¶
type AuthService struct{}
func NewAuthService ¶
func NewAuthService(store sessions.Store) *AuthService
func (*AuthService) GetSessionUser ¶
func (*AuthService) RemoveUserSession ¶
func (a *AuthService) RemoveUserSession(w http.ResponseWriter, r *http.Request)
func (*AuthService) StoreUserSession ¶
func (a *AuthService) StoreUserSession( w http.ResponseWriter, r *http.Request, user goth.User, ) error
Click to show internal directories.
Click to hide internal directories.