Documentation ¶
Index ¶
- Variables
- func Configure(options *Opts)
- func RouteGetUser(c web.C, w http.ResponseWriter, r *http.Request)
- func RouteLogin(c web.C, w http.ResponseWriter, r *http.Request)
- func RouteLogout(c web.C, w http.ResponseWriter, r *http.Request)
- func Skip(path string, args ...string)
- type AccessCheckerInterface
- type Opts
- type Token
- type UserFinderInterface
- type UserInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUserNotFound = errors.New("user not found")
Functions ¶
func RouteGetUser ¶
func RouteLogin ¶
func RouteLogout ¶
Types ¶
type AccessCheckerInterface ¶
type AccessCheckerInterface interface {
Check(r *http.Request, user UserInterface) (bool, error)
}
type Opts ¶
type Opts struct { UserFinder UserFinderInterface AccessChecker AccessCheckerInterface Mux *web.Mux MuxBase string SessionStore session.Store }
type UserFinderInterface ¶
type UserFinderInterface interface {
FindUserByEmailAndPassword(email, password string) (UserInterface, error)
}
type UserInterface ¶
abstract user
Click to show internal directories.
Click to hide internal directories.