Documentation ¶
Index ¶
Constants ¶
View Source
const ( SandboxTemplateSetName = "sandbox" AppstudioTemplateSetName = "appstudio" UserProvisionedTemplateName = "userprovisioned" UserDeactivatedTemplateName = "userdeactivated" UserDeactivatingTemplateName = "userdeactivating" IdlerTriggeredTemplateName = "idlertriggered" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationTemplate ¶
NotificationTemplate contains the template subject and content
func GetNotificationTemplate ¶
func GetNotificationTemplate(name string, templateSetName string) (*NotificationTemplate, error)
GetNotificationTemplate returns a NotificationTemplate with the given name for the specified templateSetName. An error will be returned if such a template is not found or there is an error in loading templates. This function expects the templates to be organized under rootDirectory as rootDirectory/templateSetName/templateName/notification.html and rootDirectory/templateSetName/templateName/subject.txt making the function dependent on the path length.
Click to show internal directories.
Click to hide internal directories.