messages

package
v0.1.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCancelCommand

func NewCancelCommand() *cobra.Command

NewCancelCommand creates the cancel command

func NewCommand

func NewCommand() *cobra.Command

NewCommand creates the messages command group

func NewGetCommand

func NewGetCommand() *cobra.Command

NewGetCommand creates the get command

func NewListCommand

func NewListCommand() *cobra.Command

NewListCommand creates the list command

func NewSendCommand

func NewSendCommand() *cobra.Command

NewSendCommand creates the send command

Types

type ContentData

type ContentData struct {
	TextContent string
	HtmlContent string
	AmpContent  string
}

ContentData holds the processed email content

type RecipientData

type RecipientData struct {
	Email         string                 `json:"email"`
	Name          string                 `json:"name,omitempty"`
	Substitutions map[string]interface{} `json:"substitutions,omitempty"`
}

RecipientData represents a single recipient with their email, name and substitution data

type SendFlags

type SendFlags struct {
	// Basic email parameters
	FromEmail      string
	ToEmails       []string
	RecipientsFile string
	Subject        string

	// Content options
	TextContent string
	HtmlContent string
	AmpContent  string

	// Template files
	TextTemplate string
	HtmlTemplate string
	AmpTemplate  string

	// Substitutions
	GlobalSubstitutionsFile string

	// Advanced options
	CustomHeaders  []string
	ScheduleTime   string
	Sandbox        bool
	SandboxResult  string
	Tags           []string
	IdempotencyKey string
	TrackOpens     bool
	TrackClicks    bool
	Attachments    []string

	// Batch operation options
	ShowProgress   bool
	MaxConcurrency int
	MaxRetries     int
	ShowMetrics    bool
	DebugMode      bool
}

SendFlags holds all the parsed flags for the send command

Jump to

Keyboard shortcuts

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