MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / init

Function init

pkg/email/templates/validate.go:24–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22)
23
24func 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.
41type ValidateData struct {

Callers

nothing calls this directly

Calls 3

NewTemplateFSFunction · 0.92
RegisterTemplateFunction · 0.92

Tested by

no test coverage detected