internal/mailer¶
github.com/gamidoc/backend/internal/mailer
Types¶
Mailer¶
type Mailer interface {
Message¶
type Message struct {
NoopMailer¶
type NoopMailer struct{}
ResendMailer¶
type ResendMailer struct {
SendResult¶
type SendResult struct {
Functions¶
NewNoopMailer¶
func NewNoopMailer() *NoopMailer {
NewResendMailer¶
func NewResendMailer(apiKey string, baseURL string, client *http.Client) *ResendMailer {
NoopMailer.Send¶
func (m *NoopMailer) Send(ctx context.Context, message Message) (SendResult, error) {
ResendMailer.Send¶
func (m *ResendMailer) Send(ctx context.Context, message Message) (SendResult, error) {