Versions in this module Expand all Collapse all v1 v1.0.1 Aug 20, 2024 v1.0.0 Aug 19, 2024 Changes in this version + var ErrConfigurationNotFound = errors.New("configuration not found") + var ErrConfigurationNotValid = errors.New("configuration is not valid") + var ErrSenderPlatformNotExist = errors.New("sender platform is not exist") + type ConfigServiceEmailSender struct + ConfigServiceProxy *configservice.APIProxy + SenderPlatformCache *cache.Cache + func NewConfigServiceEmailSender() (*ConfigServiceEmailSender, error) + func (e *ConfigServiceEmailSender) SendEmail(ctx context.Context, emailData object.EmailData) error + type EmailConfigSource string + const ConfigServiceSource + const StaticSource + type EmailSender interface + SendEmail func(ctx context.Context, emailData object.EmailData) error + func NewEmailSender(configSource EmailConfigSource) (EmailSender, error) + type StaticEmailSender struct + FromAddress string + FromName string + SenderPlatform platform.SenderPlatform + func NewStaticEmailSender() (*StaticEmailSender, error) + func (e *StaticEmailSender) SendEmail(ctx context.Context, emailData object.EmailData) error