Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mailer ¶
type Mailer struct { email.UnimplementedEmailServer // contains filtered or unexported fields }
Mailer is a gRPC server it implements the methods defined by the MailerServer interface
func NewMailer ¶
func NewMailer(logger hclog.Logger, email *data.Email, cred *entities.EmailCredential) *Mailer
NewMailer creates a new mailer server
func (*Mailer) SendEmail ¶
func (mailer *Mailer) SendEmail(ctx context.Context, rr *protos.EmailRequest) (*protos.EmailResponse, error)
SendEmail is a function to send an email based on the EmailRequest
Click to show internal directories.
Click to hide internal directories.