sendgrid

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(conf Config) (email.Provider, error)

NewProvider creates a new SendGrid email provider.

Types

type Config

type Config struct {
	APIKey    string                         `json:"apiKey"`
	FromEmail *jt.JSONType[*netMail.Address] `json:"fromEmail"`
}

Config is the configuration for the SendGrid provider.

func (Config) DefaultsAndValidate

func (s Config) DefaultsAndValidate() (Config, error)

DefaultsAndValidate implements the jsontype.Config interface.

Jump to

Keyboard shortcuts

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