SYMBOL INDEX (260 symbols across 60 files) FILE: drivers/drivers_test.go type DriversTestSuite (line 31) | type DriversTestSuite struct method SetupSuite (line 42) | func (t *DriversTestSuite) SetupSuite() { method Attachment (line 87) | func (t *DriversTestSuite) Attachment(name string) mail.Attachment { method UtilTestUnmarshal (line 99) | func (t *DriversTestSuite) UtilTestUnmarshal(r httputil.Responder, buf... method UtilTestMeta (line 107) | func (t *DriversTestSuite) UtilTestMeta(r httputil.Responder, message,... method UtilTestSend (line 113) | func (t *DriversTestSuite) UtilTestSend(fn func(m *mocks.Requester) ma... function TestMail (line 37) | func TestMail(t *testing.T) { constant DataPath (line 50) | DataPath = "testdata" FILE: drivers/mailgun.go type mailGun (line 34) | type mailGun struct method Send (line 101) | func (m *mailGun) Send(t *mail.Transmission) (mail.Response, error) { constant mailgunEndpoint (line 41) | mailgunEndpoint = "/v3/%s/messages" function NewMailgun (line 46) | func NewMailgun(cfg mail.Config) (mail.Mailer, error) { type mailgunResponse (line 68) | type mailgunResponse struct method Unmarshal (line 74) | func (r *mailgunResponse) Unmarshal(buf []byte) error { method CheckError (line 84) | func (r *mailgunResponse) CheckError(response *http.Response, buf []by... method Meta (line 94) | func (r *mailgunResponse) Meta() httputil.Meta { FILE: drivers/mailgun_test.go function ExampleNewMailgun (line 24) | func ExampleNewMailgun() { method TestNewMailGun (line 39) | func (t *DriversTestSuite) TestNewMailGun() { method TestMailgunResponse_Unmarshal (line 80) | func (t *DriversTestSuite) TestMailgunResponse_Unmarshal() { method TestMailgunResponse_CheckError (line 84) | func (t *DriversTestSuite) TestMailgunResponse_CheckError() { method TestMailgunResponse_Meta (line 120) | func (t *DriversTestSuite) TestMailgunResponse_Meta() { method TestMailGun_Send (line 125) | func (t *DriversTestSuite) TestMailGun_Send() { FILE: drivers/postal.go type postal (line 33) | type postal struct method Send (line 131) | func (d *postal) Send(t *mail.Transmission) (mail.Response, error) { constant postalEndpoint (line 40) | postalEndpoint = "%s/api/v1/send/message" constant postalErrorMessage (line 43) | postalErrorMessage = "error sending transmission to Postal API" function NewPostal (line 48) | func NewPostal(cfg mail.Config) (mail.Mailer, error) { type postalTransmission (line 61) | type postalTransmission struct type postalAttachment (line 74) | type postalAttachment struct type postalResponse (line 86) | type postalResponse struct method Unmarshal (line 94) | func (r *postalResponse) Unmarshal(buf []byte) error { method CheckError (line 104) | func (r *postalResponse) CheckError(response *http.Response, buf []byt... method Meta (line 121) | func (r *postalResponse) Meta() httputil.Meta { FILE: drivers/postal_test.go function ExampleNewPostal (line 24) | func ExampleNewPostal() { method TestNewPostal (line 38) | func (t *DriversTestSuite) TestNewPostal() { method TestPostalResponse_Unmarshal (line 70) | func (t *DriversTestSuite) TestPostalResponse_Unmarshal() { method TestPostalResponse_CheckError (line 74) | func (t *DriversTestSuite) TestPostalResponse_CheckError() { method TestPostalResponse_Meta (line 113) | func (t *DriversTestSuite) TestPostalResponse_Meta() { method TestPostal_Send (line 120) | func (t *DriversTestSuite) TestPostal_Send() { FILE: drivers/postmark.go type postmark (line 32) | type postmark struct method Send (line 135) | func (d *postmark) Send(t *mail.Transmission) (mail.Response, error) { constant postmarkEndpoint (line 39) | postmarkEndpoint = "https://api.postmarkapp.com/email" constant postmarkErrorMessage (line 42) | postmarkErrorMessage = "error sending transmission to Postmark API" function NewPostmark (line 47) | func NewPostmark(cfg mail.Config) (mail.Mailer, error) { type postmarkTransmission (line 60) | type postmarkTransmission struct type postmarkHeader (line 82) | type postmarkHeader struct type postmarkAttachment (line 87) | type postmarkAttachment struct type postmarkResponse (line 99) | type postmarkResponse struct method Unmarshal (line 108) | func (r *postmarkResponse) Unmarshal(buf []byte) error { method CheckError (line 118) | func (r *postmarkResponse) CheckError(response *http.Response, buf []b... method Meta (line 128) | func (r *postmarkResponse) Meta() httputil.Meta { FILE: drivers/postmark_test.go function ExampleNewPostmark (line 24) | func ExampleNewPostmark() { method TestNewPostmark (line 38) | func (t *DriversTestSuite) TestNewPostmark() { method TestPostmarkResponse_Unmarshal (line 69) | func (t *DriversTestSuite) TestPostmarkResponse_Unmarshal() { method TestPostmarkResponse_CheckError (line 73) | func (t *DriversTestSuite) TestPostmarkResponse_CheckError() { method TestPostmarkResponse_Meta (line 112) | func (t *DriversTestSuite) TestPostmarkResponse_Meta() { method TestPostmark_Send (line 117) | func (t *DriversTestSuite) TestPostmark_Send() { FILE: drivers/sendgrid.go type sendGrid (line 32) | type sendGrid struct method Send (line 158) | func (d *sendGrid) Send(t *mail.Transmission) (mail.Response, error) { constant sendGridEndpoint (line 40) | sendGridEndpoint = "https://api.sendgrid.com/v3/mail/send" constant sendgridErrorMessage (line 43) | sendgridErrorMessage = "error sending transmission to SendGrid API" function NewSendGrid (line 48) | func NewSendGrid(cfg mail.Config) (mail.Mailer, error) { type sgTransmission (line 61) | type sgTransmission struct type sgPersonalization (line 78) | type sgPersonalization struct type sgEmail (line 92) | type sgEmail struct type sgContent (line 97) | type sgContent struct type sgAttachment (line 102) | type sgAttachment struct type sgResponse (line 116) | type sgResponse struct method Unmarshal (line 127) | func (r *sgResponse) Unmarshal(buf []byte) error { method CheckError (line 140) | func (r *sgResponse) CheckError(response *http.Response, buf []byte) e... method Meta (line 150) | func (r *sgResponse) Meta() httputil.Meta { type sgError (line 120) | type sgError struct FILE: drivers/sendgrid_test.go function ExampleNewSendGrid (line 24) | func ExampleNewSendGrid() { method TestNewSendGrid (line 37) | func (t *DriversTestSuite) TestNewSendGrid() { method TestSendGridResponse_Unmarshal (line 69) | func (t *DriversTestSuite) TestSendGridResponse_Unmarshal() { method TestSendGridResponse_CheckError (line 76) | func (t *DriversTestSuite) TestSendGridResponse_CheckError() { method TestSendGridResponse_Meta (line 115) | func (t *DriversTestSuite) TestSendGridResponse_Meta() { method TestSendGrid_Send (line 120) | func (t *DriversTestSuite) TestSendGrid_Send() { FILE: drivers/smtp.go type smtpClient (line 32) | type smtpClient struct method Send (line 65) | func (m *smtpClient) Send(t *mail.Transmission) (mail.Response, error) { method getTo (line 85) | func (m *smtpClient) getTo(t *mail.Transmission) []string { method bytes (line 96) | func (m *smtpClient) bytes(t *mail.Transmission) []byte { type smtpSendFunc (line 39) | type smtpSendFunc function NewSMTP (line 43) | func NewSMTP(cfg mail.Config) (mail.Mailer, error) { FILE: drivers/smtp_test.go method TestNewSMTP (line 23) | func (t *DriversTestSuite) TestNewSMTP() { method TestSMTP_Send (line 76) | func (t *DriversTestSuite) TestSMTP_Send() { method TestSMTP_Bytes (line 136) | func (t *DriversTestSuite) TestSMTP_Bytes() { FILE: drivers/sparkpost.go type sparkPost (line 34) | type sparkPost struct method Send (line 186) | func (d *sparkPost) Send(t *mail.Transmission) (mail.Response, error) { constant sparkpostEndpoint (line 42) | sparkpostEndpoint = "%s/api/v1/transmissions" constant sparkpostErrorMessage (line 45) | sparkpostErrorMessage = "error sending transmission to SparkPost API" function NewSparkPost (line 50) | func NewSparkPost(cfg mail.Config) (mail.Mailer, error) { type spTransmission (line 64) | type spTransmission struct type spTransmissionOptions (line 82) | type spTransmissionOptions struct type spContent (line 96) | type spContent struct type spFrom (line 109) | type spFrom struct type spResponse (line 119) | type spResponse struct method Unmarshal (line 156) | func (r *spResponse) Unmarshal(buf []byte) error { method CheckError (line 166) | func (r *spResponse) CheckError(response *http.Response, buf []byte) e... method Meta (line 176) | func (r *spResponse) Meta() httputil.Meta { type spError (line 124) | type spError struct type spRecipient (line 132) | type spRecipient struct type spAddress (line 142) | type spAddress struct type spAttachment (line 149) | type spAttachment struct FILE: drivers/sparkpost_test.go function ExampleNewSparkPost (line 24) | func ExampleNewSparkPost() { method TestNewSparkPost (line 38) | func (t *DriversTestSuite) TestNewSparkPost() { method TestSSparkPostResponse_Unmarshal (line 79) | func (t *DriversTestSuite) TestSSparkPostResponse_Unmarshal() { method TestSparkPostResponse_CheckError (line 83) | func (t *DriversTestSuite) TestSparkPostResponse_CheckError() { method TestSparkPostResponse_Meta (line 122) | func (t *DriversTestSuite) TestSparkPostResponse_Meta() { method TestSparkPost_Send (line 130) | func (t *DriversTestSuite) TestSparkPost_Send() { FILE: examples/attachments.go function Attachments (line 23) | func Attachments() { FILE: examples/mailgun.go function MailGun (line 24) | func MailGun() { FILE: examples/postal.go function Postal (line 24) | func Postal() { FILE: examples/postmark.go function Postmark (line 24) | func Postmark() { FILE: examples/sendgrid.go function SendGrid (line 24) | func SendGrid() { FILE: examples/smtp.go function SMTP (line 24) | func SMTP() { FILE: examples/sparkpost.go function Sparkpost (line 24) | func Sparkpost() { FILE: internal/client/client.go type Requester (line 30) | type Requester interface function New (line 39) | func New(client *http.Client) *Client { constant Timeout (line 54) | Timeout = time.Second * 10 type Client (line 60) | type Client struct method Do (line 71) | func (c *Client) Do(ctx context.Context, r *httputil.Request, payload ... method makeRequest (line 118) | func (c *Client) makeRequest(ctx context.Context, r *httputil.Request,... method curlString (line 158) | func (c *Client) curlString(req *http.Request, p httputil.Payload) str... FILE: internal/client/client_test.go function TestNewClient (line 32) | func TestNewClient(t *testing.T) { function TestClient_Do (line 40) | func TestClient_Do(t *testing.T) { function TestClient_MakeRequest (line 150) | func TestClient_MakeRequest(t *testing.T) { function TestClient_CurlString (line 231) | func TestClient_CurlString(t *testing.T) { FILE: internal/client/util.go function Is2XX (line 18) | func Is2XX(code int) bool { FILE: internal/client/util_test.go function TestIs2XX (line 22) | func TestIs2XX(t *testing.T) { FILE: internal/errors/errors.go constant CONFLICT (line 26) | CONFLICT = "conflict" constant INTERNAL (line 28) | INTERNAL = "internal" constant INVALID (line 30) | INVALID = "invalid" constant API (line 32) | API = "api" constant Prefix (line 34) | Prefix = "go-mail" constant GlobalError (line 37) | GlobalError = "An error has occurred." type Error (line 41) | type Error struct method Error (line 50) | func (e *Error) Error() string { function Code (line 77) | func Code(err error) string { function Message (line 91) | func Message(err error) string { function ToError (line 104) | func ToError(err interface{}) *Error { function New (line 120) | func New(text string) error { FILE: internal/errors/errors_test.go function TestError_Error (line 10) | func TestError_Error(t *testing.T) { function TestError_Code (line 47) | func TestError_Code(t *testing.T) { function Test_Message (line 73) | func Test_Message(t *testing.T) { function TestError_ToError (line 99) | func TestError_ToError(t *testing.T) { function TestNew (line 133) | func TestNew(t *testing.T) { FILE: internal/httputil/payload.go type Payload (line 27) | type Payload interface constant JSONContentType (line 42) | JSONContentType = "application/json" type JSONData (line 46) | type JSONData struct method Buffer (line 75) | func (j *JSONData) Buffer() (*bytes.Buffer, error) { method ContentType (line 85) | func (j *JSONData) ContentType() string { method Values (line 91) | func (j *JSONData) Values() map[string]string { function NewJSONData (line 54) | func NewJSONData(obj interface{}) (*JSONData, error) { type FormData (line 100) | type FormData struct method AddValue (line 119) | func (f *FormData) AddValue(key, value string) { method AddBuffer (line 127) | func (f *FormData) AddBuffer(key, fileName string, buff []byte) { method Buffer (line 138) | func (f *FormData) Buffer() (*bytes.Buffer, error) { method ContentType (line 168) | func (f *FormData) ContentType() string { method Values (line 177) | func (f *FormData) Values() map[string]string { type keyNameBuff (line 107) | type keyNameBuff struct function NewFormData (line 114) | func NewFormData() *FormData { FILE: internal/httputil/payload_test.go function TestNewJSONData (line 24) | func TestNewJSONData(t *testing.T) { function TestJSONData_Buffer (line 56) | func TestJSONData_Buffer(t *testing.T) { function TestJsonData_ContentType (line 83) | func TestJsonData_ContentType(t *testing.T) { function TestJSONData_Values (line 89) | func TestJSONData_Values(t *testing.T) { function TestFormData_AddValue (line 96) | func TestFormData_AddValue(t *testing.T) { function TestFormData_AddBuffer (line 103) | func TestFormData_AddBuffer(t *testing.T) { type mockWriterError (line 112) | type mockWriterError struct method Write (line 114) | func (m *mockWriterError) Write(p []byte) (n int, err error) { function TestFormData_Buffer (line 118) | func TestFormData_Buffer(t *testing.T) { function TestFormData_ContentType (line 175) | func TestFormData_ContentType(t *testing.T) { function TestFormData_Values (line 182) | func TestFormData_Values(t *testing.T) { FILE: internal/httputil/request.go type Request (line 19) | type Request struct method AddHeader (line 36) | func (r *Request) AddHeader(name, value string) { method SetBasicAuth (line 48) | func (r *Request) SetBasicAuth(user, password string) { function NewHTTPRequest (line 28) | func NewHTTPRequest(method, url string) *Request { FILE: internal/httputil/request_test.go function TestNewHTTPRequest (line 22) | func TestNewHTTPRequest(t *testing.T) { function TestRequest_AddHeader (line 28) | func TestRequest_AddHeader(t *testing.T) { function TestRequest_SetBasicAuth (line 35) | func TestRequest_SetBasicAuth(t *testing.T) { FILE: internal/httputil/response.go type Responder (line 20) | type Responder interface type Meta (line 27) | type Meta struct FILE: internal/mime/mime.go constant sniffLength (line 24) | sniffLength uint32 = 512 function DetectBuffer (line 32) | func DetectBuffer(buf []byte) string { FILE: internal/mime/mime_test.go function TestDetectBuffer (line 23) | func TestDetectBuffer(t *testing.T) { FILE: internal/mocks/client/Requester.go type Requester (line 15) | type Requester struct method Do (line 20) | func (_m *Requester) Do(ctx context.Context, r *httputil.Request, payl... FILE: internal/mocks/drivers/smtpSendFunc.go type smtpSendFunc (line 12) | type smtpSendFunc struct method Execute (line 17) | func (_m *smtpSendFunc) Execute(addr string, a smtp.Auth, from string,... FILE: internal/mocks/httputil/Payload.go type Payload (line 12) | type Payload struct method Buffer (line 17) | func (_m *Payload) Buffer() (*bytes.Buffer, error) { method ContentType (line 40) | func (_m *Payload) ContentType() string { method Values (line 54) | func (_m *Payload) Values() map[string]string { FILE: internal/mocks/httputil/Responder.go type Responder (line 13) | type Responder struct method CheckError (line 18) | func (_m *Responder) CheckError(response *http.Response, buf []byte) e... method Meta (line 32) | func (_m *Responder) Meta() httputil.Meta { method Unmarshal (line 46) | func (_m *Responder) Unmarshal(buf []byte) error { FILE: internal/mocks/mail/Mailer.go type Mailer (line 11) | type Mailer struct method Send (line 16) | func (_m *Mailer) Send(t *mail.Transmission) (mail.Response, error) { FILE: mail/attachments.go type Attachment (line 24) | type Attachment struct method Mime (line 30) | func (a Attachment) Mime() string { method B64 (line 35) | func (a Attachment) B64() string { FILE: mail/attachments_test.go function ExampleAttachment_Mime (line 18) | func ExampleAttachment_Mime() { method TestAttachment_Mime (line 33) | func (t *MailTestSuite) TestAttachment_Mime() { function ExampleAttachment_B64 (line 61) | func ExampleAttachment_B64() { method TestAttachment_B64 (line 76) | func (t *MailTestSuite) TestAttachment_B64() { FILE: mail/config.go type Config (line 24) | type Config struct method Validate (line 39) | func (c *Config) Validate() error { FILE: mail/config_test.go function ExampleConfig_Validate (line 21) | func ExampleConfig_Validate() { method TestConfig_Validate (line 27) | func (t *MailTestSuite) TestConfig_Validate() { FILE: mail/mail.go type Mailer (line 57) | type Mailer interface FILE: mail/mail_test.go type MailTestSuite (line 25) | type MailTestSuite struct method SetupSuite (line 36) | func (t *MailTestSuite) SetupSuite() { method Attachment (line 54) | func (t *MailTestSuite) Attachment(name string) Attachment { function TestMail (line 31) | func TestMail(t *testing.T) { constant DataPath (line 44) | DataPath = "testdata" constant PNGName (line 46) | PNGName = "gopher.png" constant JPGName (line 48) | JPGName = "gopher.jpg" constant SVGName (line 50) | SVGName = "gopher.svg" FILE: mail/response.go type Response (line 19) | type Response struct FILE: mail/transmissions.go type Transmission (line 24) | type Transmission struct method Validate (line 38) | func (t *Transmission) Validate() error { method HasCC (line 60) | func (t *Transmission) HasCC() bool { method HasBCC (line 66) | func (t *Transmission) HasBCC() bool { method HasAttachments (line 72) | func (t Transmission) HasAttachments() bool { FILE: mail/transmissions_test.go function ExampleTransmission_Validate (line 21) | func ExampleTransmission_Validate() { method TestTransmission_Validate (line 27) | func (t *MailTestSuite) TestTransmission_Validate() { function ExampleTransmission_HasCC (line 75) | func ExampleTransmission_HasCC() { method TestConfig_HasCC (line 83) | func (t *MailTestSuite) TestConfig_HasCC() { function ExampleTransmission_HasBCC (line 106) | func ExampleTransmission_HasBCC() { method TestConfig_HasBCC (line 114) | func (t *MailTestSuite) TestConfig_HasBCC() { function ExampleTransmission_HasAttachments (line 137) | func ExampleTransmission_HasAttachments() { method TestTransmission_HasAttachments (line 150) | func (t *MailTestSuite) TestTransmission_HasAttachments() { FILE: mocks/client/Requester.go type Requester (line 15) | type Requester struct method Do (line 20) | func (_m *Requester) Do(ctx context.Context, r *httputil.Request, payl... FILE: mocks/clientold/Requester.go type Requester (line 12) | type Requester struct method Do (line 17) | func (_m *Requester) Do(message interface{}, url string, headers http.... FILE: mocks/drivers/smtpSendFunc.go type smtpSendFunc (line 12) | type smtpSendFunc struct method Execute (line 17) | func (_m *smtpSendFunc) Execute(addr string, a smtp.Auth, from string,... FILE: mocks/httputil/Payload.go type Payload (line 12) | type Payload struct method Buffer (line 17) | func (_m *Payload) Buffer() (*bytes.Buffer, error) { method ContentType (line 40) | func (_m *Payload) ContentType() string { method Values (line 54) | func (_m *Payload) Values() map[string]string { FILE: mocks/httputil/Responder.go type Responder (line 13) | type Responder struct method CheckError (line 18) | func (_m *Responder) CheckError(response *http.Response, buf []byte) e... method Meta (line 32) | func (_m *Responder) Meta() httputil.Meta { method Unmarshal (line 46) | func (_m *Responder) Unmarshal(buf []byte) error { FILE: mocks/mail/Mailer.go type Mailer (line 11) | type Mailer struct method Send (line 16) | func (_m *Mailer) Send(t *mail.Transmission) (mail.Response, error) { FILE: tests/mail_test.go constant DataPath (line 30) | DataPath = "testdata" constant PNGName (line 32) | PNGName = "gopher.png" function LoadEnv (line 36) | func LoadEnv(t *testing.T) { function GetTransmission (line 52) | func GetTransmission(t *testing.T) *mail.Transmission { function UtilTestSend (line 86) | func UtilTestSend(t *testing.T, fn func(cfg mail.Config) (mail.Mailer, e... FILE: tests/mailgun_test.go function Test_MailGun (line 23) | func Test_MailGun(t *testing.T) { FILE: tests/postal_test.go function Test_Postal (line 23) | func Test_Postal(t *testing.T) { FILE: tests/postmark_test.go function Test_Postmark (line 23) | func Test_Postmark(t *testing.T) { FILE: tests/sendgrid_test.go function Test_SendGrid (line 23) | func Test_SendGrid(t *testing.T) { FILE: tests/smtp_test.go function Test_SMTP (line 24) | func Test_SMTP(t *testing.T) { FILE: tests/sparkpost_test.go function Test_SparkPost (line 23) | func Test_SparkPost(t *testing.T) {