Documentation ¶
Index ¶
- Variables
- func AdminQRCheckIn(c *gin.Context)
- func AdminUserGet(c *gin.Context)
- func CleanupTableTask(interval time.Duration)
- func FetchDiscordDetails(code string) (*models.DiscordDetails, error)
- func FetchUserDetails(auth_token string) (*models.DiscordUser, error)
- func GetApplicaton(c *gin.Context)
- func GetResume(c *gin.Context)
- func GetResumeDetails(user *models.User, application *models.Application) (string, string, error)
- func GetUser(c *gin.Context)
- func GetUserList(c *gin.Context)
- func Login(c *gin.Context)
- func LogoutUser(c *gin.Context)
- func SendOutboundEmail(email string, html_content string, text_content string, subject string, ...)
- func SetupOutboundEmail(user *models.User, context string)
- func UpdateAdmin(c *gin.Context)
- func UpdateApplication(c *gin.Context)
- func UpdateResume(c *gin.Context)
- func UpdateUser(c *gin.Context)
- func VerifyEmail(c *gin.Context)
- type QRCheckInContext
Constants ¶
This section is empty.
Variables ¶
View Source
var TEMPLATES []brevo.GetSmtpTemplateOverview
Functions ¶
func AdminQRCheckIn ¶
func AdminUserGet ¶
func CleanupTableTask ¶
func FetchDiscordDetails ¶
func FetchDiscordDetails(code string) (*models.DiscordDetails, error)
func FetchUserDetails ¶
func FetchUserDetails(auth_token string) (*models.DiscordUser, error)
func GetApplicaton ¶
func GetResumeDetails ¶
func LogoutUser ¶
func SendOutboundEmail ¶
func SetupOutboundEmail ¶
func UpdateAdmin ¶
func UpdateApplication ¶
func UpdateResume ¶
func UpdateUser ¶
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 ¶
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" )
Click to show internal directories.
Click to hide internal directories.