controllers

package
v0.0.0-...-3ed5696 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: GPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AdminQRCheckIn

func AdminQRCheckIn(c *gin.Context)

func AdminUserGet

func AdminUserGet(c *gin.Context)

func CleanupTableTask

func CleanupTableTask(interval time.Duration)

func FetchDiscordDetails

func FetchDiscordDetails(code string) (*models.DiscordDetails, error)

func FetchUserDetails

func FetchUserDetails(auth_token string) (*models.DiscordUser, error)

func GetApplicaton

func GetApplicaton(c *gin.Context)

func GetResume

func GetResume(c *gin.Context)

func GetResumeDetails

func GetResumeDetails(user *models.User, application *models.Application) (string, string, error)

func GetUser

func GetUser(c *gin.Context)

func GetUserList

func GetUserList(c *gin.Context)

Get-user-list endpoint code

func Login

func Login(c *gin.Context)

func LogoutUser

func LogoutUser(c *gin.Context)

func SendOutboundEmail

func SendOutboundEmail(email string, html_content string, text_content string, subject string, full_name string)

func SetupOutboundEmail

func SetupOutboundEmail(user *models.User, context string)

func UpdateAdmin

func UpdateAdmin(c *gin.Context)

func UpdateApplication

func UpdateApplication(c *gin.Context)

func UpdateResume

func UpdateResume(c *gin.Context)

func UpdateUser

func UpdateUser(c *gin.Context)

UpdateUser updates the user's information if they are in the registering status and have verified their email. It receives a gin context and expects a JSON request body with the following optional fields: name and email. If the request body is invalid or the user is not in the registering status, it returns an error response. If the update is successful, it returns a success response.

func VerifyEmail

func VerifyEmail(c *gin.Context)

Types

type QRCheckInContext

type QRCheckInContext string
const (
	REGISTRATION    QRCheckInContext = "registration"
	DAY_1_DINNER    QRCheckInContext = "day_1_dinner"
	DAY_2_BREAKFAST QRCheckInContext = "day_2_breakfast"
	DAY_2_LUNCH     QRCheckInContext = "day_2_lunch"
	DAY_2_DINNER    QRCheckInContext = "day_2_dinner"
	DAY_3_BREAKFAST QRCheckInContext = "day_3_breakfast"
	DRINK_BAR       QRCheckInContext = "drink_bar"
	BUBBLE_TEA      QRCheckInContext = "bubble_tea"
)

Jump to

Keyboard shortcuts

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