Documentation ¶
Index ¶
- Constants
- Variables
- func EmailAccountDeletedSuccessfully(db *gorm.DB, lng, name, email string) error
- func EmailAnAdminApprovedYourJoinRequest(db *gorm.DB, lng, name, email, chainName string) error
- func EmailAnAdminDeniedYourJoinRequest(db *gorm.DB, lng, name, email, chainName, reason string) error
- func EmailApproveReminder(db *gorm.DB, lng, name, email string, approvals []*EmailApproveReminderItem) error
- func EmailContactConfirmation(c *gin.Context, db *gorm.DB, name, email, message string) error
- func EmailContactReceived(db *gorm.DB, name, email, message string) error
- func EmailDoYouWantToBeHost(db *gorm.DB, lng, name, email, chainName string) error
- func EmailIsYourLoopStillActive(db *gorm.DB, lng, name, email, chainName, participantName string) error
- func EmailLoginVerification(c *gin.Context, db *gorm.DB, name, email, token string, isApp bool, ...) error
- func EmailLoopIsDeleted(db *gorm.DB, lng, name, email, chainName string, isPending bool) error
- func EmailPoke(db *gorm.DB, lng, name, email, participantName, chainName string) error
- func EmailRegisterVerification(c *gin.Context, db *gorm.DB, name, email, token, chainUID string) error
- func EmailRootAdminFailedLastRetry(db *gorm.DB, email, subject string) error
- func EmailSomeoneIsInterestedInJoiningYourLoop(db *gorm.DB, ...) error
- func EmailSomeoneLeftLoop(db *gorm.DB, ...) error
- func EmailSomeoneWaitingToBeAccepted(db *gorm.DB, lng, name, email, chainName, participantName string) error
- func EmailSubscribeToNewsletter(c *gin.Context, db *gorm.DB, name, email string) error
- func EmailYouSignedUpForLoop(db *gorm.DB, lng, name, email, chainName string) error
- func EmailYourLoopDeletedNextMonth(db *gorm.DB, lng, name, email, chainName, chainUID string) error
- func EmailYourLoopDeletedNextWeek(db *gorm.DB, lng, name, email, chainName, chainUID string) error
- type EmailApproveReminderItem
- type EmailLayoutData
Constants ¶
View Source
const ( EmailTemplateSubscribedToNewsletter = "subscribed_to_newsletter" EmailTemplateContactConfirmation = "contact_confirmation" EmailTemplateSomeoneIsInterestedInJoiningYourLoop = "someone_is_interested_in_joining_your_loop" EmailTemplateAnAdminApprovedYourJoinRequest = "an_admin_approved_your_join_request" EmailTemplateLoginVerification = "login_verification" EmailTemplateAnAdminDeniedYourJoinRequest = "an_admin_denied_your_join_request" EmailTemplateRegisterVerification = "register_verification" EmailTemplatePoke = "poke" EmailTemplateApproveReminder = "approve_reminder" EmailTemplateContactReceived = "contact_received" )
View Source
const ( NotificationEnumTitleNewBulkyCreated = "NOTIFICATION_TITLE_NEW_BULKY_CREATED" NotificationEnumTitleBagTooOld = "NOTIFICATION_TITLE_BAG_TOO_OLD" NotificationEnumTitleBagAssignedYou = "NOTIFICATION_TITLE_BAG_ASSIGNED_YOU" )
Variables ¶
View Source
var Notifications map[string]*onesignal.StringMap = map[string]*onesignal.StringMap{ NotificationEnumTitleNewBulkyCreated: { En: onesignal.PtrString("A new bulky item has been created"), }, NotificationEnumTitleBagTooOld: { En: onesignal.PtrString("The bag you are holding has been in your possession for too long"), }, NotificationEnumTitleBagAssignedYou: { En: onesignal.PtrString("A bag has been assigned to you"), }, }
TODO: Remove this and use json files instead
Functions ¶
func EmailApproveReminder ¶
func EmailApproveReminder(db *gorm.DB, lng, name, email string, approvals []*EmailApproveReminderItem, ) error
func EmailContactReceived ¶
func EmailDoYouWantToBeHost ¶
func EmailLoginVerification ¶
func EmailLoopIsDeleted ¶
func EmailSomeoneLeftLoop ¶
func EmailYouSignedUpForLoop ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.