templates

package
v0.0.0-...-fb74ee3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 0 Imported by: 0

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)

Jump to

Keyboard shortcuts

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