Versions in this module Expand all Collapse all v0 v0.2024.5 Jun 5, 2024 Changes in this version + const DefaultEmailBody + const DefaultEmailSubject + var DefaultSendTime = jsontypes.MustParseSchedule("0 0 * * 1") + type AttachmentCfg struct + Attachment []byte + AttachmentName string + func (d *AttachmentCfg) AttachFile(name string, b []byte) + type Destination struct + BodyTemplate jsontypes.String + From string + Host string + Parsed *ParsedDestination + Port int + SendTime *jsontypes.Schedule + SubjectTemplate jsontypes.String + To []string + Username string + func (d Destination) Addr() string + func (d Destination) Parse() (*ParsedDestination, error) + func (d Destination) ReadBodyTemplate() (*template.Template, error) + func (d Destination) ReadSubjectTemplate() (*template.Template, error) + type ParsedDestination struct + Addr string + BodyTemplate *template.Template + From *mail.Address + Password string + SubjectTemplate *template.Template + To []*mail.Address + Username string + type Root struct + AlertHubName string + Destination Destination + Now func() time.Time + Subject string + TemplateArgs TemplateArgs + Timeout time.Duration + func ReadBytes(data []byte) (cfg Root, err error) + type Source struct + Floor string + Name string + Subsystem string + Title string + Zone string + type TemplateArgs struct + EmailTitle string v0.0.0-test-multiarch Jun 7, 2024