routes

package
v1.0.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePassword

func ChangePassword(c *gin.Context, dh *handlers.DatabaseHandler, id *string, newPHC string) (err error)

func GetAdminDashboard

func GetAdminDashboard(c *gin.Context)

func GetChangePassword

func GetChangePassword(c *gin.Context)

func GetConfirmedSubscribers

func GetConfirmedSubscribers(c *gin.Context, dh *handlers.DatabaseHandler) (subscribers []*models.Subscriber)

func GetNewsletter

func GetNewsletter(c *gin.Context)

func GetSubscriberByID

func GetSubscriberByID(c *gin.Context, dh *handlers.DatabaseHandler)

func GetSubscribers

func GetSubscribers(c *gin.Context, dh *handlers.DatabaseHandler)

func InsertNewsletter

func InsertNewsletter(c *gin.Context, tx pgx.Tx, content *models.Body) (id *string, err error)

func Logout

func Logout(c *gin.Context)

func ParsePassword

func ParsePassword(password string) (err error)

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)

func SeeOther

func SeeOther(c *gin.Context, location string) (response *http.Response, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL