Documentation ¶
Overview ¶
Package sendmail 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 MockSendmail ¶
type MockSendmail struct {
// contains filtered or unexported fields
}
MockSendmail is a mock of Sendmail interface.
func NewMockSendmail ¶
func NewMockSendmail(ctrl *gomock.Controller) *MockSendmail
NewMockSendmail creates a new mock instance.
func (*MockSendmail) EXPECT ¶
func (m *MockSendmail) EXPECT() *MockSendmailMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSendmail) Send ¶
func (m *MockSendmail) Send(send SendRequest) error
Send mocks base method.
type MockSendmailMockRecorder ¶
type MockSendmailMockRecorder struct {
// contains filtered or unexported fields
}
MockSendmailMockRecorder is the mock recorder for MockSendmail.
func (*MockSendmailMockRecorder) Send ¶
func (mr *MockSendmailMockRecorder) Send(send interface{}) *gomock.Call
Send indicates an expected call of Send.
type SendRequest ¶
type SendRequest struct { Template string To Emails Data DynamicData }
func (*SendRequest) SetDefaultTemplateLanguage ¶
func (s *SendRequest) SetDefaultTemplateLanguage()
type Sendmail ¶
type Sendmail interface {
Send(send SendRequest) (err error)
}
func NewSendmail ¶
func NewSendmail(opt SendmailOptions) Sendmail
type SendmailOptions ¶
type SendmailOptions struct { ApiKey string From Email GlobalDynamicData DynamicData Templates Templates }
Click to show internal directories.
Click to hide internal directories.