sendgrid

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EnvAPIKey = "sendgrid_api_key"

EnvAPIKey is the environment variable that the API key is read from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

Sender is a notificaiton.Sender that uses SendGrid to ship messages

func New

func New(apiKey string) *Sender

New accepts a SendGrid API key and initializes a Sender

func (*Sender) Send

func (s *Sender) Send(msg notification.Message) error

Send sends the specified message

Jump to

Keyboard shortcuts

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