Documentation
¶
Overview ¶
Package sendgrid is a generated GoMock package.
Index ¶
Constants ¶
View Source
const ( TEMPLATE_LANGUAGE_ENUS = "en-us" TEMPLATE_LANGUAGE_PTBR = "pt-br" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicData ¶
type DynamicData map[string]interface{}
type MockSendgrid ¶
type MockSendgrid struct {
// contains filtered or unexported fields
}
MockSendgrid is a mock of Sendgrid interface.
func NewMockSendgrid ¶
func NewMockSendgrid(ctrl *gomock.Controller) *MockSendgrid
NewMockSendgrid creates a new mock instance.
func (*MockSendgrid) EXPECT ¶
func (m *MockSendgrid) EXPECT() *MockSendgridMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSendgrid) Send ¶
func (m *MockSendgrid) Send(send SendRequest) error
Send mocks base method.
type MockSendgridMockRecorder ¶
type MockSendgridMockRecorder struct {
// contains filtered or unexported fields
}
MockSendgridMockRecorder is the mock recorder for MockSendgrid.
func (*MockSendgridMockRecorder) Send ¶
func (mr *MockSendgridMockRecorder) Send(send interface{}) *gomock.Call
Send indicates an expected call of Send.
type Options ¶
type Options struct { ApiKey string From Email DynamicData DynamicData Templates Templates }
type SendRequest ¶
type SendRequest struct { Template string To Emails Data DynamicData }
func (*SendRequest) SetDefaultTemplateLanguage ¶
func (s *SendRequest) SetDefaultTemplateLanguage()
type Sendgrid ¶
type Sendgrid interface {
Send(send SendRequest) (err error)
}
Click to show internal directories.
Click to hide internal directories.