Documentation
¶
Overview ¶
Package email provides SendGrid transactional email integration for workflows. It lets workflows send transactional emails via SendGrid, and exposes HostCall functions callable from WASM workflow code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
SendGridAPIKey string `json:"sendgrid_api_key"`
DefaultFrom string `json:"default_from,omitempty"`
}
Config holds optional configuration for the email plugin.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements SendGrid email sending for workflows.
func (*Plugin) Info ¶
func (p *Plugin) Info() plugin.PluginInfo
Info returns plugin metadata for discovery and documentation.
func (*Plugin) Init ¶
Init initializes the plugin with the given environment. It reads the SendGrid API key from the plugin config and creates a SendGrid client.
func (*Plugin) RegisterHostFunctions ¶
func (p *Plugin) RegisterHostFunctions(scope plugin.FuncRegistry) error
RegisterHostFunctions registers workflow-callable functions on the scoped function registry. The plugin name is implicit -- each plugin gets its own scope, so function names need not be globally unique.