Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = log.New()
Log represents logger.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Name string `json:"name,omitempty"` Email string `json:"email"` HeaderTo string `json:"header_to,omitempty"` }
Address is SparkPost' address part.
type Content ¶
type Content struct { From Address `json:"from,omitempty"` Headers map[string]string `json:"headers,omitempty"` Subject string `json:"subject,omitempty"` Text string `json:"text,omitempty"` HTML string `json:"html,omitempty"` }
Content defines SparkPost' content.
type Message ¶
type Message struct { ReturnPath string `json:"return_path,omitempty"` Recipients []Recipient `json:"recipients,omitempty"` Content Content `json:"content,omitempt"` }
Message defines SparkPost' message.
type Recipient ¶
type Recipient struct {
Address Address `json:"address"`
}
Recipient defines SparkPost' recipient.
Click to show internal directories.
Click to hide internal directories.