email

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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

func New

func New() plugin.Plugin

New creates a new Plugin instance.

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

func (p *Plugin) Init(ctx context.Context, env *plugin.Environment) error

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.

Jump to

Keyboard shortcuts

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