Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailPluginConfig ¶
type EmailPluginConfig struct {
Enabled bool `json:"enabled" toml:"enabled"`
// Primary provider to use
Provider EmailProviderType `json:"provider" toml:"provider"`
// Optional fallback provider if primary fails
FallbackProvider EmailProviderType `json:"fallback_provider" toml:"fallback_provider"`
// FromAddress is the email address to send from
FromAddress string `json:"from_address" toml:"from_address"`
}
EmailPluginConfig contains configuration for the email plugin
type EmailProviderType ¶
type EmailProviderType string
EmailProviderType defines the email provider to use
const ( ProviderSMTP EmailProviderType = "smtp" ProviderResend EmailProviderType = "resend" )
type TemplateData ¶
type TemplateData struct {
UserName string `json:"user_name"`
Email string `json:"email"`
Token string `json:"token"`
URL string `json:"url"`
AppName string `json:"app_name"`
Extra map[string]string `json:"extra"`
}
TemplateData contains all data needed for email template rendering
Click to show internal directories.
Click to hide internal directories.