Documentation ¶
Overview ¶
Package mailerservice holds the business logic and data structures associated with the mailer domain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MailerRepo Repository MailConfig *configs.MailgunMailer Tracer trace.Tracer Logger *otelzap.Logger Conf *configs.Host }
Config will hold repository and used utils that will be injected into this Service layer on service initialization
type Interface ¶
type Interface interface{}
Interface specifies the business operations of the service.
type MockInterface ¶
MockInterface is an autogenerated mock type for the Interface type
func NewMockInterface ¶
func NewMockInterface(t mockConstructorTestingTNewMockInterface) *MockInterface
NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type MockRepository ¶
MockRepository is an autogenerated mock type for the Repository type
func NewMockRepository ¶
func NewMockRepository(t mockConstructorTestingTNewMockRepository) *MockRepository
NewMockRepository creates a new instance of MockRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockRepository) NewMessage ¶
func (_m *MockRepository) NewMessage(sender string, subject string, recipient string) *mailgun.Message
NewMessage provides a mock function with given fields: sender, subject, recipient