MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / SendGrid

Struct SendGrid

pkg/email/sendgrid/sendgrid.go:29–34  ·  view source on GitHub ↗

SendGrid is the type that implements SendGrid as email provider.

Source from the content-addressed store, hash-verified

27
28// SendGrid is the type that implements SendGrid as email provider.
29type 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.
37func New(ctx context.Context, emailConfig email.Config, sgConfig Config) (email.Sender, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected