Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
489 Bytes
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
}