views

package
v0.0.0-...-e3d9ab2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 EmailAccountDeletedSuccessfully

func EmailAccountDeletedSuccessfully(db *gorm.DB, lng,
	name,
	email string,
) error

func EmailAnAdminApprovedYourJoinRequest

func EmailAnAdminApprovedYourJoinRequest(db *gorm.DB, lng,
	name,
	email,
	chainName string,
) error

func EmailAnAdminDeniedYourJoinRequest

func EmailAnAdminDeniedYourJoinRequest(db *gorm.DB, lng,
	name,
	email,
	chainName,
	reason string,
) error

func EmailApproveReminder

func EmailApproveReminder(db *gorm.DB, lng,
	name,
	email string,
	approvals []*EmailApproveReminderItem,
) error

func EmailContactConfirmation

func EmailContactConfirmation(c *gin.Context, db *gorm.DB,
	name,
	email,
	message string,
) error

func EmailContactReceived

func EmailContactReceived(db *gorm.DB,
	name,
	email,
	message string,
) error

func EmailDoYouWantToBeHost

func EmailDoYouWantToBeHost(db *gorm.DB, lng,
	name,
	email,
	chainName string,
) error

func EmailIsYourLoopStillActive

func EmailIsYourLoopStillActive(db *gorm.DB, lng,
	name,
	email,
	chainName,
	participantName string,
) error

func EmailLoginVerification

func EmailLoginVerification(c *gin.Context, db *gorm.DB,
	name,
	email,
	token string,
	isApp bool,
	chainUID string,
) error

func EmailLoopIsDeleted

func EmailLoopIsDeleted(db *gorm.DB, lng,
	name,
	email,
	chainName string,
	isPending bool,
) error

func EmailPoke

func EmailPoke(db *gorm.DB, lng,
	name,
	email,
	participantName,
	chainName string,
) error

func EmailRegisterVerification

func EmailRegisterVerification(c *gin.Context, db *gorm.DB,
	name,
	email,
	token,
	chainUID string,
) error

func EmailRootAdminFailedLastRetry

func EmailRootAdminFailedLastRetry(db *gorm.DB, email, subject string) error

func EmailSomeoneIsInterestedInJoiningYourLoop

func EmailSomeoneIsInterestedInJoiningYourLoop(db *gorm.DB, lng,
	adminEmail,
	adminName,
	chainName,
	participantName,
	participantEmail,
	participantPhoneNumber,
	participantAddress string,
	participantSizeEnums []string,
) error

func EmailSomeoneLeftLoop

func EmailSomeoneLeftLoop(db *gorm.DB, lng,
	name,
	email,
	chainName,
	participantEmail,
	participantName string,
) error

func EmailSomeoneWaitingToBeAccepted

func EmailSomeoneWaitingToBeAccepted(db *gorm.DB, lng,
	name,
	email,
	chainName,
	participantName string,
) error

func EmailSubscribeToNewsletter

func EmailSubscribeToNewsletter(c *gin.Context, db *gorm.DB,
	name,
	email string,
) error

func EmailYouSignedUpForLoop

func EmailYouSignedUpForLoop(db *gorm.DB, lng,
	name,
	email,
	chainName string,
) error

func EmailYourLoopDeletedNextMonth

func EmailYourLoopDeletedNextMonth(db *gorm.DB, lng,
	name,
	email,
	chainName,
	chainUID string,
) error

func EmailYourLoopDeletedNextWeek

func EmailYourLoopDeletedNextWeek(db *gorm.DB, lng,
	name,
	email,
	chainName,
	chainUID string,
) error

Types

type EmailApproveReminderItem

type EmailApproveReminderItem struct {
	Name        string `gorm:"name"`
	Email       string `gorm:"email"`
	ChainID     uint   `gorm:"chain_id"`
	UserChainID uint   `gorm:"user_chain_id"`
	ChainName   string `gorm:"chain_name"`
}

type EmailLayoutData

type EmailLayoutData struct {
	RTL     bool
	Subject string
	Body    template.HTML
	BaseURL string

	I18nMuchLoveComma       string
	I18nTheClothingLoopTeam string
	I18nEvents              string
	I18nDonate              string
	I18nAboutUs             string
	I18nFAQ                 string
}

Jump to

Keyboard shortcuts

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