request

package
v0.0.0-...-c002953 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2016 License: BSD-3-Clause Imports: 8 Imported by: 0

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

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

type VendorResponse struct {
	Fingerprint string `json:"fingerprint"`
	Root        string `json:"root"`
}

func (*VendorResponse) ParseJson

func (vr *VendorResponse) ParseJson(inputJson *[]byte) error

type ZipwhipResponse

type ZipwhipResponse struct {
	Fingerprint []byte
	MessageId   []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL