()
| 22 | ) |
| 23 | |
| 24 | func init() { |
| 25 | tmpl, err := email.NewTemplateFS( |
| 26 | fsys, ttnpb.GetNotificationTypeString(ttnpb.NotificationType_VALIDATE), |
| 27 | email.FSTemplate{ |
| 28 | SubjectTemplate: "Please confirm your email address for {{ .Network.Name }}", |
| 29 | HTMLTemplateBaseFile: "base.html.tmpl", |
| 30 | HTMLTemplateFile: "validate.html.tmpl", |
| 31 | TextTemplateFile: "validate.txt.tmpl", |
| 32 | }, |
| 33 | ) |
| 34 | if err != nil { |
| 35 | panic(err) |
| 36 | } |
| 37 | email.RegisterTemplate(tmpl) |
| 38 | } |
| 39 | |
| 40 | // ValidateData is the data for the validate email. |
| 41 | type ValidateData struct { |
nothing calls this directly
no test coverage detected