Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNilConfig indicates a nil config was provided. ErrNilConfig = errors.New("resend config is nil") // ErrEmptyAPIToken indicates an empty API token was provided. ErrEmptyAPIToken = errors.New("empty Resend API token") // ErrNilHTTPClient indicates a nil HTTP client was provided. ErrNilHTTPClient = errors.New("nil HTTP client") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
APIToken string `env:"API_TOKEN" json:"apiToken"`
}
Config configures Resend to send email.
type Emailer ¶
type Emailer struct {
// contains filtered or unexported fields
}
Emailer uses Resend to send email.
func NewResendEmailer ¶
func NewResendEmailer(cfg *Config, logger logging.Logger, tracerProvider tracing.TracerProvider, client *http.Client, circuitBreaker circuitbreaking.CircuitBreaker) (*Emailer, error)
NewResendEmailer returns a new Resend-backed Emailer.
Click to show internal directories.
Click to hide internal directories.