Documentation
¶
Index ¶
Constants ¶
View Source
const (
SessionName = "session"
)
Variables ¶
This section is empty.
Functions ¶
func NewFileStore ¶ added in v0.7.3
func NewFileStore(opts SessionOptions) (*sessions.FilesystemStore, error)
func RequireAuth ¶
func RequireAuth(auth *AuthService) func(next http.Handler) http.Handler
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.