Documentation
¶
Overview ¶
handlers/account.go
handlers/cookies.go
Index ¶
- func GetTemplateData(c *gin.Context, data gin.H) gin.H
- func TemplateContext(appVersion string) 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)
- func (h *AccountHandler) UpdateName(c *gin.Context)
- type CookieConsent
- type CookieHandler
- func (h *CookieHandler) DeleteUserConsentData(c *gin.Context)
- func (h *CookieHandler) GetLatestConsent(c *gin.Context)
- func (h *CookieHandler) GetUserConsentHistory(c *gin.Context)
- func (h *CookieHandler) HandleCookieConsent(c *gin.Context)
- func (h *CookieHandler) ShowCookiePolicy(c *gin.Context)
- func (h *CookieHandler) ShowPrivacyPolicy(c *gin.Context)
- func (h *CookieHandler) ShowTermsOfService(c *gin.Context)
- type DashboardHandler
- type DownloadHandler
- type HealthHandler
- type HowToUseHandler
- type PaymentSuccessHandler
- type PricingHandler
- type UploadHandler
- func (h *UploadHandler) CancelJob(c *gin.Context)
- func (h *UploadHandler) ConfirmUpload(c *gin.Context)
- func (h *UploadHandler) GetPresignedUploadURL(c *gin.Context)
- func (h *UploadHandler) GetStatus(c *gin.Context)
- func (h *UploadHandler) HandleUpload(c *gin.Context)
- func (h *UploadHandler) RetryJob(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTemplateData ¶
GetTemplateData creates a gin.H with common template variables
func TemplateContext ¶
func TemplateContext(appVersion string) 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
func (*AccountHandler) UpdateName ¶
func (h *AccountHandler) UpdateName(c *gin.Context)
UpdateName handles updating the user's name
type CookieConsent ¶
type CookieHandler ¶
type CookieHandler struct {
// contains filtered or unexported fields
}
func NewCookieHandler ¶
func NewCookieHandler(metadata storage.MetadataStorage) *CookieHandler
func (*CookieHandler) DeleteUserConsentData ¶
func (h *CookieHandler) DeleteUserConsentData(c *gin.Context)
DeleteUserConsentData deletes all consent data for a user (for GDPR right to erasure)
func (*CookieHandler) GetLatestConsent ¶
func (h *CookieHandler) GetLatestConsent(c *gin.Context)
GetLatestConsent retrieves the latest consent record for a user
func (*CookieHandler) GetUserConsentHistory ¶
func (h *CookieHandler) GetUserConsentHistory(c *gin.Context)
GetUserConsentHistory returns all consent records for a user (for GDPR compliance)
func (*CookieHandler) HandleCookieConsent ¶
func (h *CookieHandler) HandleCookieConsent(c *gin.Context)
HandleCookieConsent stores the user's cookie preferences
func (*CookieHandler) ShowCookiePolicy ¶
func (h *CookieHandler) ShowCookiePolicy(c *gin.Context)
ShowCookiePolicy displays the cookie policy page
func (*CookieHandler) ShowPrivacyPolicy ¶
func (h *CookieHandler) ShowPrivacyPolicy(c *gin.Context)
ShowPrivacyPolicy displays the privacy policy page
func (*CookieHandler) ShowTermsOfService ¶
func (h *CookieHandler) ShowTermsOfService(c *gin.Context)
ShowTermsOfService displays the terms of service 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)
GetHistory returns the user's processing history (for HTMX pagination)
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 HowToUseHandler ¶
type HowToUseHandler struct{}
func NewHowToUseHandler ¶
func NewHowToUseHandler() *HowToUseHandler
func (*HowToUseHandler) ShowHowToUse ¶
func (h *HowToUseHandler) ShowHowToUse(c *gin.Context)
type PaymentSuccessHandler ¶
type PaymentSuccessHandler struct{}
func NewPaymentSuccessHandler ¶
func NewPaymentSuccessHandler() *PaymentSuccessHandler
func (*PaymentSuccessHandler) ShowPaymentSuccess ¶
func (h *PaymentSuccessHandler) ShowPaymentSuccess(c *gin.Context)
ShowPaymentSuccess displays the payment success page
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, redisURL string) *UploadHandler
func (*UploadHandler) CancelJob ¶
func (h *UploadHandler) CancelJob(c *gin.Context)
func (*UploadHandler) ConfirmUpload ¶
func (h *UploadHandler) ConfirmUpload(c *gin.Context)
ConfirmUpload confirms that a file has been uploaded to S3 and starts processing
func (*UploadHandler) GetPresignedUploadURL ¶
func (h *UploadHandler) GetPresignedUploadURL(c *gin.Context)
func (*UploadHandler) GetStatus ¶
func (h *UploadHandler) GetStatus(c *gin.Context)
func (*UploadHandler) HandleUpload ¶
func (h *UploadHandler) HandleUpload(c *gin.Context)
func (*UploadHandler) RetryJob ¶
func (h *UploadHandler) RetryJob(c *gin.Context)