Documentation
¶
Index ¶
- func SendConfirmationEmail(svc infrastructure.EmailService, to, confirmURL string) error
- type Handler
- func (h *Handler) ConfirmEmail(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeletePost(w http.ResponseWriter, r *http.Request)
- func (h *Handler) EmailPost(w http.ResponseWriter, r *http.Request)
- func (h *Handler) IndexPage(w http.ResponseWriter, r *http.Request)
- func (h *Handler) PasswordPost(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ProfilePost(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Routes() chi.Router
- func (h *Handler) ThemePost(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendConfirmationEmail ¶
func SendConfirmationEmail(svc infrastructure.EmailService, to, confirmURL string) error
Types ¶
type Handler ¶
type Handler struct {
DB *bun.DB
SQLDB *sql.DB
Tokens *token.Tokens
BaseURL string
EmailService infrastructure.EmailService
}
func NewHandler ¶
func NewHandler(db *bun.DB, sqldb *sql.DB, tokens *token.Tokens, baseURL string, emailSvc infrastructure.EmailService) *Handler
func (*Handler) ConfirmEmail ¶
func (h *Handler) ConfirmEmail(w http.ResponseWriter, r *http.Request)
func (*Handler) DeletePost ¶
func (h *Handler) DeletePost(w http.ResponseWriter, r *http.Request)
func (*Handler) PasswordPost ¶
func (h *Handler) PasswordPost(w http.ResponseWriter, r *http.Request)
func (*Handler) ProfilePost ¶
func (h *Handler) ProfilePost(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.