Documentation ¶
Index ¶
- func GetContentHashBase64(content []byte) string
- func GetHmac(content string, key []byte) string
- type Attachment
- type AzureACSEmailProvider
- type CommunicationError
- type Content
- type CustomHeader
- type Email
- type EmailAddress
- type EmailProvider
- type ErrorResponse
- type HttpEmailProvider
- type Recipients
- type SendgridEmailProvider
- type SendgridResponseBody
- type SmtpEmailProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContentHashBase64 ¶
Types ¶
type Attachment ¶
type AzureACSEmailProvider ¶
func NewAzureACSEmailProvider ¶
func NewAzureACSEmailProvider(accessKey string, endpoint string) *AzureACSEmailProvider
type CommunicationError ¶
CommunicationError contains the error code and message
type CustomHeader ¶
type Email ¶
type Email struct { Recipients Recipients `json:"recipients"` SenderAddress string `json:"senderAddress"` Content Content `json:"content"` Headers []CustomHeader `json:"headers"` Tracking bool `json:"disableUserEngagementTracking"` Importance string `json:"importance"` ReplyTo []EmailAddress `json:"replyTo"` Attachments []Attachment `json:"attachments"` }
type EmailAddress ¶
type EmailProvider ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error CommunicationError `json:"error"`
}
type HttpEmailProvider ¶
type HttpEmailProvider struct {
// contains filtered or unexported fields
}
func NewHttpEmailProvider ¶
func NewHttpEmailProvider(endpoint string, method string) *HttpEmailProvider
type Recipients ¶
type Recipients struct { To []EmailAddress `json:"to"` CC []EmailAddress `json:"cc"` BCC []EmailAddress `json:"bcc"` }
type SendgridEmailProvider ¶
type SendgridEmailProvider struct {
ApiKey string
}
func NewSendgridEmailProvider ¶
func NewSendgridEmailProvider(apiKey string) *SendgridEmailProvider
type SendgridResponseBody ¶
type SendgridResponseBody struct { Errors []struct { Message string `json:"message"` Field interface{} `json:"field"` Help interface{} `json:"help"` } `json:"errors"` }
type SmtpEmailProvider ¶
type SmtpEmailProvider struct {
Dialer *gomail.Dialer
}
func NewSmtpEmailProvider ¶
Click to show internal directories.
Click to hide internal directories.