handlers

package
v0.0.0-...-c040eea Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

handlers/account.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessControlMiddleware

func AccessControlMiddleware() gin.HandlerFunc

func GetTemplateData

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

GetTemplateData creates a gin.H with common template variables

func ShowAccessForm

func ShowAccessForm(c *gin.Context)

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

func (h *UploadHandler) GetStatus(c *gin.Context)

func (*UploadHandler) HandleUpload

func (h *UploadHandler) HandleUpload(c *gin.Context)

Jump to

Keyboard shortcuts

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