notificationtemplates

package
v0.0.0-...-e809054 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

type NotificationTemplate struct {
	Subject string
	Content string
	Name    string
}

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.

Jump to

Keyboard shortcuts

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