messages

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 28 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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