Documentation ¶
Index ¶
Constants ¶
View Source
const ( CONTENT_ENCODING = "content-transfer-encoding" CONTENT_TYPE = "content-type" REPLY_TO = "reply-to" SUBJECT = "subject" ZIPWHIP_AUTH = "zipwhip-auth" FROM = "from" )
Variables ¶
View Source
var ParsingTable = map[string]bool{ FROM: true, SUBJECT: true, CONTENT_ENCODING: true, CONTENT_TYPE: true, REPLY_TO: true, ZIPWHIP_AUTH: true, }
Functions ¶
This section is empty.
Types ¶
type SendRequest ¶
type SendRequest struct { Key []byte Sender address.ZipwhipAddress Strategy SendingStrategy Recipients [][]byte ReplyTo mail.Address Body []byte Headers map[string][]byte Result ZipwhipResponse }
func NewSendRequest ¶
func NewSendRequest() *SendRequest
func (*SendRequest) AddBody ¶
func (sr *SendRequest) AddBody(body []byte) error
func (*SendRequest) AddHeaders ¶
func (sr *SendRequest) AddHeaders(headers []byte) error
type SendingStrategy ¶
type SendingStrategy int
const SESSION SendingStrategy = 1
const VENDOR SendingStrategy = 2
type SessionResponse ¶
type SessionResponse struct { Response struct { Fingerprint string `json:"fingerprint"` Root string `json:"root"` } `json:"response"` Success bool `json:"success"` }
func (*SessionResponse) ParseJson ¶
func (sr *SessionResponse) ParseJson(inputJson *[]byte) error
type VendorResponse ¶
func (*VendorResponse) ParseJson ¶
func (vr *VendorResponse) ParseJson(inputJson *[]byte) error
type ZipwhipResponse ¶
Click to show internal directories.
Click to hide internal directories.