Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSmtpPoolClosed = fmt.Errorf("smtp pool closed")
View Source
var ProviderSet = wire.NewSet( NewEmailService, NewEmailConsumer, )
ProviderSet is service providers.
Functions ¶
func FormatEmail ¶ added in v0.4.0
Types ¶
type EmailConsumer ¶
type EmailConsumer struct {
// contains filtered or unexported fields
}
func NewEmailConsumer ¶
func NewEmailConsumer(ms *EmailService) *EmailConsumer
func (*EmailConsumer) Cleanup ¶
func (s *EmailConsumer) Cleanup(sarama.ConsumerGroupSession) error
func (*EmailConsumer) ConsumeClaim ¶
func (s *EmailConsumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
func (*EmailConsumer) Setup ¶
func (s *EmailConsumer) Setup(sarama.ConsumerGroupSession) error
type EmailService ¶
type EmailService struct { emailApi.UnimplementedEmailServer // contains filtered or unexported fields }
func NewEmailService ¶
func NewEmailService(c *conf.EmailConfig) *EmailService
func (*EmailService) SendEmail ¶
func (ms *EmailService) SendEmail(ctx context.Context, req *emailApi.SendEmailReq) (*emailApi.Empty, error)
Click to show internal directories.
Click to hide internal directories.