handlers

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateEmail

func ValidateEmail(email string) bool

ValidateEmail checks if the email is in a valid format

Types

type AuthHandler

type AuthHandler struct {
	// contains filtered or unexported fields
}

AuthHandler handles authentication related routes

func NewAuthHandler

func NewAuthHandler(userRepo models.UserRepository, auth *auth.Auth) *AuthHandler

NewAuthHandler creates a new AuthHandler

func (*AuthHandler) HandleLogin

func (h *AuthHandler) HandleLogin(w http.ResponseWriter, r *http.Request)

HandleLogin handles the login page and form submission

func (*AuthHandler) HandleLogout

func (h *AuthHandler) HandleLogout(w http.ResponseWriter, r *http.Request)

HandleLogout handles user logout

func (*AuthHandler) HandleProfile

func (h *AuthHandler) HandleProfile(w http.ResponseWriter, r *http.Request)

HandleProfile handles the user profile page and updates

func (*AuthHandler) HandleRegister

func (h *AuthHandler) HandleRegister(w http.ResponseWriter, r *http.Request)

HandleRegister handles the registration page and form submission

type CalendarHandler

type CalendarHandler struct {
	// contains filtered or unexported fields
}

CalendarHandler handles calendar-related routes

func NewCalendarHandler

func NewCalendarHandler(talkRepo models.TalkRepository) *CalendarHandler

NewCalendarHandler creates a new CalendarHandler

func (*CalendarHandler) HandleCalendar

func (h *CalendarHandler) HandleCalendar(w http.ResponseWriter, r *http.Request)

HandleCalendar renders the calendar page

type HomeHandler

type HomeHandler struct {
	// contains filtered or unexported fields
}

HomeHandler handles the home page

func NewHomeHandler

func NewHomeHandler(talkRepo models.TalkRepository) *HomeHandler

NewHomeHandler creates a new HomeHandler

func (*HomeHandler) HandleHome

func (h *HomeHandler) HandleHome(w http.ResponseWriter, r *http.Request)

HandleHome renders the home page

func (*HomeHandler) HandleInternalServerError

func (h *HomeHandler) HandleInternalServerError(w http.ResponseWriter, r *http.Request)

HandleInternalServerError renders the 500 page

func (*HomeHandler) HandleNotFound

func (h *HomeHandler) HandleNotFound(w http.ResponseWriter, r *http.Request)

HandleNotFound renders the 404 page

type TalkHandler

type TalkHandler struct {
	// contains filtered or unexported fields
}

TalkHandler handles talk-related routes

func NewTalkHandler

func NewTalkHandler(
	talkRepo models.TalkRepository,
	userRepo models.UserRepository,
	voteRepo models.VoteRepository,
	attendanceRepo models.AttendanceRepository,
	resourceRepo models.ResourceRepository,
	scheduler *services.SchedulerService,
) *TalkHandler

NewTalkHandler creates a new TalkHandler

func (*TalkHandler) HandleAddResource

func (h *TalkHandler) HandleAddResource(w http.ResponseWriter, r *http.Request)

HandleAddResource handles adding a resource to a talk

func (*TalkHandler) HandleCancelTalk

func (h *TalkHandler) HandleCancelTalk(w http.ResponseWriter, r *http.Request)

HandleCancelTalk handles canceling a talk

func (*TalkHandler) HandleCompleteTalk

func (h *TalkHandler) HandleCompleteTalk(w http.ResponseWriter, r *http.Request)

HandleCompleteTalk handles marking a talk as completed

func (*TalkHandler) HandleDeleteResource

func (h *TalkHandler) HandleDeleteResource(w http.ResponseWriter, r *http.Request)

HandleDeleteResource handles deleting a resource from a talk

func (*TalkHandler) HandleEditTalk

func (h *TalkHandler) HandleEditTalk(w http.ResponseWriter, r *http.Request)

HandleEditTalk handles editing an existing talk

func (*TalkHandler) HandleGetTalk

func (h *TalkHandler) HandleGetTalk(w http.ResponseWriter, r *http.Request)

HandleGetTalk handles displaying a specific talk

func (*TalkHandler) HandleListTalks

func (h *TalkHandler) HandleListTalks(w http.ResponseWriter, r *http.Request)

HandleListTalks handles listing all talks with optional filtering

func (*TalkHandler) HandleManageAttendance

func (h *TalkHandler) HandleManageAttendance(w http.ResponseWriter, r *http.Request)

HandleManageAttendance handles managing attendance for a talk

func (*TalkHandler) HandleMyTalks

func (h *TalkHandler) HandleMyTalks(w http.ResponseWriter, r *http.Request)

HandleMyTalks handles displaying the user's talks

func (*TalkHandler) HandleProposeTalk

func (h *TalkHandler) HandleProposeTalk(w http.ResponseWriter, r *http.Request)

HandleProposeTalk handles proposing a new talk

func (*TalkHandler) HandleProvideFeedback

func (h *TalkHandler) HandleProvideFeedback(w http.ResponseWriter, r *http.Request)

HandleProvideFeedback handles providing feedback for a talk

func (*TalkHandler) HandleScheduleTalk

func (h *TalkHandler) HandleScheduleTalk(w http.ResponseWriter, r *http.Request)

HandleScheduleTalk handles scheduling a talk

func (*TalkHandler) HandleVoteOnTalk

func (h *TalkHandler) HandleVoteOnTalk(w http.ResponseWriter, r *http.Request)

HandleVoteOnTalk handles voting on a talk

Jump to

Keyboard shortcuts

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