Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTemplateName ¶
CheckTemplateName validates the name of the template.
Types ¶
type FileNotFoundError ¶
FileNotFoundError is the error returned when a template file is missing.
func (FileNotFoundError) Error ¶
func (t FileNotFoundError) Error() string
Error returns the string error msg for FileNotFoundError.
type RegistrationRequest ¶
type RegistrationRequest struct { Name string `json:"name" mapstructure:"name"` Handler string `json:"handler" mapstructure:"handler"` BodyTmplPath string `json:"body_template_path" mapstructure:"body_template_path"` SubjectTmplPath string `json:"subject_template_path" mapstructure:"subject_template_path"` Persistent bool `json:"persistent" mapstructure:"persistent"` }
RegistrationRequest represents a Template registration request.
type Template ¶
type Template struct { Name string Handler handler.Handler Persistent bool // contains filtered or unexported fields }
Template represents a notification template.
func (*Template) RenderBody ¶
RenderBody renders the body template.
Click to show internal directories.
Click to hide internal directories.