package
1.1.2
Repository: https://github.com/itmayziii/email.git
Documentation: pkg.go.dev

# Functions

AppWithDomainSender associates a domain with a [Sender].
AppWithErrorLogger provides an option to supply an error severity logger.
AppWithFileStorage provides an option to specify where email templates should be read from.
No description provided by the author
AppWithInfoLogger provides an option to supply an info severity logger.
AppWithLogger is a shortcut for [AppWithInfoLogger] and [AppWithErrorLogger] when the logger is the same between the two.
EmailEvent creates a function to send an email by responding to a [CloudEvent].
NewApp is a constructor for [App] which utilizes the [options pattern].
NewMailgunSender constructs a MailgunSenderAdapter.

# Structs

App defines the dependencies the application uses.
EventData is this email packages specific event payload data needed to actually send an email.
MailgunSenderAdapter allows a mailgun.Mailgun interface to become compatible with the Sender interface.
Message represents an email.
NoopSender implements the [Sender] interface but doesn't actually send any emails which is helpful for testing purposes.
PubSubMessage is the [PubsubMessage format] when the message comes from Google's Pub/Sub.
PubSubPayload represents GCP pub/sub [MessagePublishedData format].
ReadTemplateError represents an error that occurs when an email template fails to be retrieved/read.

# Interfaces

Flusher is used to flush any buffers that may need cleared before exiting the [EmailEvent] function.
Sender sends an email with the provided Message and returns the ID identifying the request.

# Type aliases

No description provided by the author
MessageTo represents who an email should be sent to.