Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDKIMKey ¶
GenerateDKIMKey generates a RSA key suitable for DKIM signing and return the private key, the public key and the error.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateSendingDomain ¶
func (c *Client) CreateSendingDomain(domain *SendingDomain) error
func (*Client) CreateTransmissionFromTemplate ¶
func (c *Client) CreateTransmissionFromTemplate(transmission Transmission) error
func (*Client) VerifySendingDomain ¶
func (c *Client) VerifySendingDomain(domain string) (*VerificationStatus, error)
type SendingDomain ¶
type SendingDomain struct { Domain string `json:"domain"` DKIM *SendingDomainDKIM `json:"dkim"` }
type SendingDomainDKIM ¶
type SendingDomainDKIM struct { Private string `json:"private"` Public string `json:"public"` // Subdomain that will be used to verify; e.g.: scph0316 Selector string `json:"selector"` // Colon separated list of headers to sign. SparkPost UI by default uses "from:to:subject:date" Headers string `json:"headers"` }
type Transmission ¶
Click to show internal directories.
Click to hide internal directories.