Documentation
¶
Index ¶
- Constants
- Variables
- func SignSDKRequest(ctx context.Context, req *http.Request, options *SignSDKRequestOptions) error
- type Client
- func (c *Client) Create(options CreateOptions) (string, error)
- func (c *Client) Delete(options DeleteOptions) (string, error)
- func (c *Client) Get(options GetOptions) (string, error)
- func (c *Client) List(options ListOptions) (string, error)
- func (c *Client) Save(options SaveOptions) (string, error)
- func (c *Client) Send(options SendOptions) (string, error)
- func (c *Client) Trash(options TrashOptions) (string, error)
- func (c *Client) Untrash(options UntrashOptions) (string, error)
- type CreateOptions
- type DeleteOptions
- type GetOptions
- type ListOptions
- type SaveOptions
- type SendOptions
- type SignSDKRequestOptions
- type TrashOptions
- type UntrashOptions
Constants ¶
View Source
const ( // EmailTypeInbox represents an inbox email EmailTypeInbox = "inbox" // EmailTypeInbox represents a sent email EmailTypeSent = "sent" // EmailTypeInbox represents a draft email EmailTypeDraft = "draft" OrderAsc = "asc" OrderDesc = "desc" )
The constants representing email types
Variables ¶
View Source
var (
ErrMissingCredentials = errors.New("no credentials provided")
)
Functions ¶
func SignSDKRequest ¶
Types ¶
type Client ¶
type CreateOptions ¶
type CreateOptions struct { Subject string `json:"subject"` From []string `json:"from"` To []string `json:"to"` Cc []string `json:"cc"` Bcc []string `json:"bcc"` ReplyTo []string `json:"replyTo"` Text string `json:"text"` HTML string `json:"html"` GenerateText string `json:"generateText"` Send bool `json:"send"` File string `json:"-"` }
type DeleteOptions ¶
type DeleteOptions struct {
MessageID string
}
type GetOptions ¶
type GetOptions struct {
MessageID string
}
type ListOptions ¶
type SaveOptions ¶
type SaveOptions struct { MessageID string `json:"-"` Subject string `json:"subject"` From []string `json:"from"` To []string `json:"to"` Cc []string `json:"cc"` Bcc []string `json:"bcc"` ReplyTo []string `json:"replyTo"` Body string `json:"body"` Text string `json:"text"` HTML string `json:"html"` GenerateText string `json:"generateText"` Send bool `json:"send"` File string `json:"-"` }
type SendOptions ¶
type SendOptions struct {
MessageID string
}
type SignSDKRequestOptions ¶
type SignSDKRequestOptions struct { Credentials aws.CredentialsProvider Payload []byte Region string Verbose bool }
type TrashOptions ¶
type TrashOptions struct {
MessageID string
}
type UntrashOptions ¶
type UntrashOptions struct {
MessageID string
}
Click to show internal directories.
Click to hide internal directories.