Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachmentCopier ¶ added in v1.0.4
type AttachmentCopier interface { // Copy should, as expected, copy the attachment file to the provided io.Writer. Copy(attachmentPath string, writer io.Writer) error }
AttachmentCopier interface should be implemented by any service responsible to get attachment files from a storage manager (FS, S3 TemplateBucket, Redis... etc).
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
S3 handles getting template content from AWS S3 buckets. It implements both AttachmentCopier and TemplateFetcher interfaces.
type TemplateFetcher ¶
type TemplateFetcher interface { // Fetch should return the content of the template as string Fetch(templateName string) (string, error) }
TemplateFetcher interface should be implemented by any service responsible to get template content from a storage manager (FS, S3 TemplateBucket, Redis... etc).
Click to show internal directories.
Click to hide internal directories.