handlers

package
v0.0.0-...-7cba720 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

handlers/account.go

handlers/cookies.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemplateData

func GetTemplateData(c *gin.Context, data gin.H) gin.H

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 CookieConsent struct {
	Essential  bool      `json:"essential"`
	Analytics  bool      `json:"analytics"`
	Functional bool      `json:"functional"`
	Timestamp  time.Time `json:"timestamp"`
	Version    string    `json:"version"`
	UserAgent  string    `json:"user_agent,omitempty"`
	IPAddress  string    `json:"ip_address,omitempty"`
}

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 (*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 (*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)

Jump to

Keyboard shortcuts

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