Documentation ¶
Index ¶
Constants ¶
View Source
const CurrentTemplateVersion = 1
CurrentTemplateVersion is the current template version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateName ¶
type TemplateName string
TemplateName is the type used for template names
const ( TestTemplate TemplateName = "TEST_TEMPLATE" NewPropertyNotification TemplateName = "NOTIFICATION_NEW_PROPERTY" NewReservationNotification TemplateName = "NEW_RESERVATION" CancelReservationNotification TemplateName = "CANCEL_RESERVATION" BalanceChangeNotification TemplateName = "BALANCE_INCREASE" HomePageContents TemplateName = "HOME_PAGE" LowBalanceNotification TemplateName = "BALANCE_NOTIFICATION" )
Template names
type TemplateParamGroup ¶
type TemplateParamGroup string
TemplateParamGroup is the type used for template group names
const ( Settings TemplateParamGroup = "Settings" Reservation TemplateParamGroup = "Reservation" Ledger TemplateParamGroup = "Ledger" Me TemplateParamGroup = "Me" Decimal TemplateParamGroup = "Decimal" )
Template group names
func GetNotificationTemplate ¶
func GetNotificationTemplate(version int, name TemplateName) (string, string, []TemplateParamGroup)
GetNotificationTemplate returns two templates (ex. subject+body notification, or member+admin page)
Click to show internal directories.
Click to hide internal directories.