types

package
v2.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL