Documentation
¶
Overview ¶
handlers/account.go
Index ¶
- func AccessControlMiddleware() gin.HandlerFunc
- func GetTemplateData(c *gin.Context, data gin.H) gin.H
- func ShowAccessForm(c *gin.Context)
- func TemplateContext() gin.HandlerFunc
- type AboutHandler
- type AccountHandler
- func (h *AccountHandler) HandleChangeEmail(c *gin.Context)
- func (h *AccountHandler) HandleChangePassword(c *gin.Context)
- func (h *AccountHandler) HandleDeleteAccount(c *gin.Context)
- func (h *AccountHandler) ShowChangeEmail(c *gin.Context)
- func (h *AccountHandler) ShowChangePassword(c *gin.Context)
- func (h *AccountHandler) ShowDeleteConfirmation(c *gin.Context)
- type DashboardHandler
- type DownloadHandler
- type HealthHandler
- type PricingHandler
- type UploadHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessControlMiddleware ¶
func AccessControlMiddleware() gin.HandlerFunc
func GetTemplateData ¶
GetTemplateData creates a gin.H with common template variables
func ShowAccessForm ¶
ShowAccessForm displays the password entry form
func TemplateContext ¶
func TemplateContext() gin.HandlerFunc
TemplateContext adds common template variables to all requests
Types ¶
type AboutHandler ¶
type AboutHandler struct{}
func NewAboutHandler ¶
func NewAboutHandler() *AboutHandler
func (*AboutHandler) ShowAbout ¶
func (h *AboutHandler) ShowAbout(c *gin.Context)
type AccountHandler ¶
type AccountHandler struct {
// contains filtered or unexported fields
}
func NewAccountHandler ¶
func NewAccountHandler(metadata storage.MetadataStorage, audioStorage storage.AudioStorage) *AccountHandler
func (*AccountHandler) HandleChangeEmail ¶
func (h *AccountHandler) HandleChangeEmail(c *gin.Context)
HandleChangeEmail processes the email change request
func (*AccountHandler) HandleChangePassword ¶
func (h *AccountHandler) HandleChangePassword(c *gin.Context)
HandleChangePassword processes the password change request
func (*AccountHandler) HandleDeleteAccount ¶
func (h *AccountHandler) HandleDeleteAccount(c *gin.Context)
HandleDeleteAccount processes the account deletion
func (*AccountHandler) ShowChangeEmail ¶
func (h *AccountHandler) ShowChangeEmail(c *gin.Context)
ShowChangeEmail displays the change email form
func (*AccountHandler) ShowChangePassword ¶
func (h *AccountHandler) ShowChangePassword(c *gin.Context)
ShowChangePassword displays the change password form
func (*AccountHandler) ShowDeleteConfirmation ¶
func (h *AccountHandler) ShowDeleteConfirmation(c *gin.Context)
ShowDeleteConfirmation shows the delete account confirmation page
type DashboardHandler ¶
type DashboardHandler struct {
// contains filtered or unexported fields
}
func NewDashboardHandler ¶
func NewDashboardHandler(metadata storage.MetadataStorage) *DashboardHandler
func (*DashboardHandler) GetHistory ¶
func (h *DashboardHandler) GetHistory(c *gin.Context)
func (*DashboardHandler) ShowDashboard ¶
func (h *DashboardHandler) ShowDashboard(c *gin.Context)
type DownloadHandler ¶
type DownloadHandler struct {
// contains filtered or unexported fields
}
func NewDownloadHandler ¶
func NewDownloadHandler(s storage.AudioStorage, m storage.MetadataStorage) *DownloadHandler
func (*DownloadHandler) HandleDownload ¶
func (h *DownloadHandler) HandleDownload(c *gin.Context)
func (*DownloadHandler) ShowResults ¶
func (h *DownloadHandler) ShowResults(c *gin.Context)
type HealthHandler ¶
type HealthHandler struct {
// contains filtered or unexported fields
}
func NewHealthHandler ¶
func NewHealthHandler(metadata storage.MetadataStorage, redisURL string) *HealthHandler
func (*HealthHandler) HealthCheck ¶
func (h *HealthHandler) HealthCheck(c *gin.Context)
type PricingHandler ¶
type PricingHandler struct{}
func NewPricingHandler ¶
func NewPricingHandler() *PricingHandler
func (*PricingHandler) ShowPricing ¶
func (h *PricingHandler) ShowPricing(c *gin.Context)
type UploadHandler ¶
type UploadHandler struct {
// contains filtered or unexported fields
}
func NewUploadHandler ¶
func NewUploadHandler(s storage.AudioStorage, m storage.MetadataStorage, q *audio.QueueManager) *UploadHandler
func (*UploadHandler) GetStatus ¶
func (h *UploadHandler) GetStatus(c *gin.Context)
func (*UploadHandler) HandleUpload ¶
func (h *UploadHandler) HandleUpload(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.