email

package
v0.0.0-...-83091a0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package email is a generated GoMock package.

Package email is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) EXPECT

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

func (*MockRepository) SendEmail

func (m *MockRepository) SendEmail(ctx context.Context, destinationEmailAddress, boundary, body string) error

SendEmail mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) SendEmail

func (mr *MockRepositoryMockRecorder) SendEmail(ctx, destinationEmailAddress, boundary, body interface{}) *gomock.Call

SendEmail indicates an expected call of SendEmail.

type MockUseCase

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

MockUseCase is a mock of UseCase interface.

func NewMockUseCase

func NewMockUseCase(ctrl *gomock.Controller) *MockUseCase

NewMockUseCase creates a new mock instance.

func (*MockUseCase) EXPECT

func (m *MockUseCase) EXPECT() *MockUseCaseMockRecorder

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

func (*MockUseCase) SendReport

func (m *MockUseCase) SendReport(ctx context.Context, reportEmail ReportEmail) error

SendReport mocks base method.

type MockUseCaseMockRecorder

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

MockUseCaseMockRecorder is the mock recorder for MockUseCase.

func (*MockUseCaseMockRecorder) SendReport

func (mr *MockUseCaseMockRecorder) SendReport(ctx, reportEmail interface{}) *gomock.Call

SendReport indicates an expected call of SendReport.

type ReportEmail

type ReportEmail struct {
	DestinationEmailAddress string
	TotalBalance            float64
	TransactionsByMonth     []map[string]int
	AverageDebit            float64
	AverageCredit           float64
}

func MockReportEmail

func MockReportEmail() *ReportEmail

type Repository

type Repository interface {
	SendEmail(ctx context.Context, destinationEmailAddress string, boundary string, body string) error
}

func NewRepositoryFactory

func NewRepositoryFactory(cfg *configuration.Config) Repository

type UseCase

type UseCase interface {
	SendReport(ctx context.Context, reportEmail ReportEmail) error
}

func NewUseCaseFactory

func NewUseCaseFactory(cfg *configuration.Config) UseCase

Jump to

Keyboard shortcuts

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