mail

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mail contains code for sending confirmation emails to users.

Package mail is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSender

type MockSender struct {
	// contains filtered or unexported fields
}

MockSender is a mock of Sender interface

func NewMockSender

func NewMockSender(ctrl *gomock.Controller) *MockSender

NewMockSender creates a new mock instance

func (*MockSender) EXPECT

func (m *MockSender) EXPECT() *MockSenderMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSender) SendVerificationEmail

func (m *MockSender) SendVerificationEmail(ctx context.Context, email, code string) error

SendVerificationEmail mocks base method

func (*MockSender) SendWelcomeEmailAsync

func (m *MockSender) SendWelcomeEmailAsync(ctx context.Context, email string)

SendWelcomeEmailAsync mocks base method

type MockSenderMockRecorder

type MockSenderMockRecorder struct {
	// contains filtered or unexported fields
}

MockSenderMockRecorder is the mock recorder for MockSender

func (*MockSenderMockRecorder) SendVerificationEmail

func (mr *MockSenderMockRecorder) SendVerificationEmail(ctx, email, code interface{}) *gomock.Call

SendVerificationEmail indicates an expected call of SendVerificationEmail

func (*MockSenderMockRecorder) SendWelcomeEmailAsync

func (mr *MockSenderMockRecorder) SendWelcomeEmailAsync(ctx, email interface{}) *gomock.Call

SendWelcomeEmailAsync indicates an expected call of SendWelcomeEmailAsync

type Sender

type Sender interface {
	SendVerificationEmail(ctx context.Context, email, code string) error
	SendWelcomeEmailAsync(ctx context.Context, email string)
}

Sender is interface for sending the emails.

Directories

Path Synopsis
Package mandrill is implementation of sender interface.
Package mandrill is implementation of sender interface.

Jump to

Keyboard shortcuts

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