Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfirmFormRenderer = confirmTemplateRenderer{}
View Source
var DefaultLoginFormRenderer = loginTemplateRenderer{}
Functions ¶
This section is empty.
Types ¶
type Confirm ¶
type Confirm struct {
// contains filtered or unexported fields
}
func NewConfirm ¶
func NewConfirm(csrf csrf.CSRF, auth RequestAuthenticator, render ConfirmFormRenderer) *Confirm
type ConfirmForm ¶
type ConfirmForm struct { Action string Error string User user.Info Values ConfirmFormValues }
type ConfirmFormRenderer ¶
type ConfirmFormRenderer interface {
Render(form ConfirmForm, w http.ResponseWriter, req *http.Request)
}
type ConfirmFormValues ¶
type Login ¶
type Login struct {
// contains filtered or unexported fields
}
func NewLogin ¶
func NewLogin(csrf csrf.CSRF, auth PasswordAuthenticator, render LoginFormRenderer) *Login
type LoginForm ¶
type LoginForm struct { Action string Error string Values LoginFormValues }
type LoginFormRenderer ¶
type LoginFormRenderer interface {
Render(form LoginForm, w http.ResponseWriter, req *http.Request)
}
type LoginFormValues ¶
type Mux ¶
type Mux interface { Handle(pattern string, handler http.Handler) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request)) }
Mux is an object that can register http handlers.
type PasswordAuthenticator ¶
type PasswordAuthenticator interface { authenticator.Password handlers.AuthenticationSuccessHandler }
type RequestAuthenticator ¶
type RequestAuthenticator interface { authenticator.Request handlers.AuthenticationSuccessHandler }
Click to show internal directories.
Click to hide internal directories.