File size: 489 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
package smtpsrv
import (
"context"
"crypto/tls"
"log/slog"
"github.com/target/goalert/alert"
)
// Config is used to configure the SMTP server.
type Config struct {
Domain string
AllowedDomains []string
TLSConfig *tls.Config
MaxRecipients int
BackgroundContext func() context.Context
Logger *slog.Logger
AuthorizeFunc func(ctx context.Context, id string) (context.Context, error)
CreateAlertFunc func(ctx context.Context, a *alert.Alert) error
}
|