Documentation
¶
Overview ¶
Package gomailer is a generated GoMock package.
Index ¶
Constants ¶
View Source
const ( Gomail = Implementation(iota) Postmark )
Variables ¶
View Source
var ErrClosed = errors.New("connection has been closed")
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Client ¶
type Client interface { // Send will send email Send(msg *Message) error // SendContext provide context to send function SendContext(ctx context.Context, msg *Message) error // SendAsync sends email asynchronously ignoring future error SendAsync(msg *Message) error // Close permanently close client connection Close() error }
type Implementation ¶
type Implementation int
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockClient) SendAsync ¶ added in v0.6.0
func (m *MockClient) SendAsync(msg *Message) error
SendAsync mocks base method
func (*MockClient) SendContext ¶ added in v0.2.0
func (m *MockClient) SendContext(ctx context.Context, msg *Message) error
SendContext mocks base method
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient
func (*MockClientMockRecorder) Close ¶
func (mr *MockClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockClientMockRecorder) Send ¶
func (mr *MockClientMockRecorder) Send(msg interface{}) *gomock.Call
Send indicates an expected call of Send
func (*MockClientMockRecorder) SendAsync ¶ added in v0.6.0
func (mr *MockClientMockRecorder) SendAsync(msg interface{}) *gomock.Call
SendAsync indicates an expected call of SendAsync
func (*MockClientMockRecorder) SendContext ¶ added in v0.2.0
func (mr *MockClientMockRecorder) SendContext(ctx, msg interface{}) *gomock.Call
SendContext indicates an expected call of SendContext
Click to show internal directories.
Click to hide internal directories.