SendGrid is the type that implements SendGrid as email provider.
| 27 | |
| 28 | // SendGrid is the type that implements SendGrid as email provider. |
| 29 | type SendGrid struct { |
| 30 | logger log.Interface |
| 31 | config Config |
| 32 | client *sendgrid.Client |
| 33 | fromEmail *mail.Email |
| 34 | } |
| 35 | |
| 36 | // New creates a SendGrid email provider. |
| 37 | func New(ctx context.Context, emailConfig email.Config, sgConfig Config) (email.Sender, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected