server

package
v0.0.0-...-274aba1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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