Documentation ¶
Index ¶
- func ChangePassword(c *gin.Context, dh *handlers.DatabaseHandler, id *string, newPHC string) (err error)
- func GetAdminDashboard(c *gin.Context)
- func GetChangePassword(c *gin.Context)
- func GetConfirmedSubscribers(c *gin.Context, dh *handlers.DatabaseHandler) (subscribers []*models.Subscriber)
- func GetNewsletter(c *gin.Context)
- func GetSubscriberByID(c *gin.Context, dh *handlers.DatabaseHandler)
- func GetSubscribers(c *gin.Context, dh *handlers.DatabaseHandler)
- func InsertNewsletter(c *gin.Context, tx pgx.Tx, content *models.Body) (id *string, err error)
- func Logout(c *gin.Context)
- func ParsePassword(password string) (err error)
- func PostChangePassword(c *gin.Context, dh *handlers.DatabaseHandler)
- func PostNewsletter(c *gin.Context, dh *handlers.DatabaseHandler, client *clients.SMTPClient)
- func SeeOther(c *gin.Context, location string) (response *http.Response, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePassword ¶
func GetAdminDashboard ¶
func GetChangePassword ¶
func GetConfirmedSubscribers ¶
func GetConfirmedSubscribers(c *gin.Context, dh *handlers.DatabaseHandler) (subscribers []*models.Subscriber)
func GetNewsletter ¶
func GetSubscriberByID ¶
func GetSubscriberByID(c *gin.Context, dh *handlers.DatabaseHandler)
func GetSubscribers ¶
func GetSubscribers(c *gin.Context, dh *handlers.DatabaseHandler)
func InsertNewsletter ¶
func ParsePassword ¶
ParseField dependency injection
func PostChangePassword ¶
func PostChangePassword(c *gin.Context, dh *handlers.DatabaseHandler)
func PostNewsletter ¶
func PostNewsletter(c *gin.Context, dh *handlers.DatabaseHandler, client *clients.SMTPClient)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.