Documentation ¶
Index ¶
- type Content
- type EmailInput
- type PinpointEmail
- func (svc *PinpointEmail) DoSendEmail(in *SDK.SendEmailInput) (string, error)
- func (svc *PinpointEmail) Errorf(format string, v ...interface{})
- func (svc *PinpointEmail) Infof(format string, v ...interface{})
- func (svc *PinpointEmail) SendEmail(in EmailInput) (string, error)
- func (svc *PinpointEmail) SendEmailSimple(subject, body, from string, to ...string) (string, error)
- func (svc *PinpointEmail) SetLogger(logger log.Logger)
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct { // If use RawMessage, below fields are ignored. // see criteria: https://github.com/aws/aws-sdk-go/blob/master/service/pinpointemail/api.go#L5877 RawMessage []byte // Simple messages SubjectCharset string Subject string BodyCharset string Body string HTML bool }
Content has the entire content of the email.
func (Content) ToContent ¶
func (c Content) ToContent() *SDK.EmailContent
type EmailInput ¶
type EmailInput struct { From string ReplyTo []string // destination To []string Cc []string Bcc []string // message Content Content // email address for bounce FeedbackForwardingEmail string ConfigurationSetName string Tags []Tag }
func (EmailInput) ToInput ¶
func (in EmailInput) ToInput() *SDK.SendEmailInput
type PinpointEmail ¶
type PinpointEmail struct {
// contains filtered or unexported fields
}
PinpointEmail has PinpointEmail client.
func New ¶
func New(conf config.Config) (*PinpointEmail, error)
New returns initialized *PinpointEmail.
func (*PinpointEmail) DoSendEmail ¶
func (svc *PinpointEmail) DoSendEmail(in *SDK.SendEmailInput) (string, error)
DoSendEmail executes SendEmail operation.
func (*PinpointEmail) Errorf ¶
func (svc *PinpointEmail) Errorf(format string, v ...interface{})
Errorf logging error information.
func (*PinpointEmail) Infof ¶
func (svc *PinpointEmail) Infof(format string, v ...interface{})
Infof logging information.
func (*PinpointEmail) SendEmail ¶
func (svc *PinpointEmail) SendEmail(in EmailInput) (string, error)
SendEmail sends email.
func (*PinpointEmail) SendEmailSimple ¶
func (svc *PinpointEmail) SendEmailSimple(subject, body, from string, to ...string) (string, error)
SendEmailSimple sends email from simple arguments.
func (*PinpointEmail) SetLogger ¶
func (svc *PinpointEmail) SetLogger(logger log.Logger)
SetLogger sets logger.
Click to show internal directories.
Click to hide internal directories.