Documentation
¶
Index ¶
- type Handler
- func (h *Handler) ForgotPasswordPage(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ForgotPasswordPost(w http.ResponseWriter, r *http.Request)
- func (h *Handler) LoginPage(w http.ResponseWriter, r *http.Request)
- func (h *Handler) LoginPost(w http.ResponseWriter, r *http.Request)
- func (h *Handler) LogoutPost(w http.ResponseWriter, r *http.Request)
- func (h *Handler) RegisterPage(w http.ResponseWriter, r *http.Request)
- func (h *Handler) RegisterPost(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ResetPasswordPage(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ResetPasswordPost(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Routes() chi.Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
DB *bun.DB
SQLDB *sql.DB
Tokens *token.Tokens
BaseURL string
EmailService infrastructure.EmailService
Log *log.Logger
}
func NewHandler ¶
func NewHandler(db *bun.DB, sqldb *sql.DB, tokens *token.Tokens, baseURL string, emailSvc infrastructure.EmailService) *Handler
func (*Handler) ForgotPasswordPage ¶
func (h *Handler) ForgotPasswordPage(w http.ResponseWriter, r *http.Request)
func (*Handler) ForgotPasswordPost ¶
func (h *Handler) ForgotPasswordPost(w http.ResponseWriter, r *http.Request)
func (*Handler) LogoutPost ¶
func (h *Handler) LogoutPost(w http.ResponseWriter, r *http.Request)
func (*Handler) RegisterPage ¶
func (h *Handler) RegisterPage(w http.ResponseWriter, r *http.Request)
func (*Handler) RegisterPost ¶
func (h *Handler) RegisterPost(w http.ResponseWriter, r *http.Request)
func (*Handler) ResetPasswordPage ¶
func (h *Handler) ResetPasswordPage(w http.ResponseWriter, r *http.Request)
func (*Handler) ResetPasswordPost ¶
func (h *Handler) ResetPasswordPost(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.