pkg

package
v0.0.0-...-520ee0d Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Filename string
	MimeType string
	Size     int64
}

type Callback

type Callback func(ctx context.Context, input CallbackInput) (any, error)

type CallbackInput

type CallbackInput struct {
	Email    Email
	RuleName string
	Fields   map[string]string
}

type Email

type Email struct {
	ID          string
	ThreadID    string
	From        string
	To          []string
	Cc          []string
	Subject     string
	BodyHTML    string
	BodyText    string
	Headers     map[string]string
	Attachments []Attachment
	ReceivedAt  time.Time
	FetchedAt   time.Time
}

type Field

type Field struct {
	Name        string
	Description string
	Required    bool
}

type Rule

type Rule struct {
	Name        string
	Description string
	Fields      []Field
	Callbacks   []Callback
}

type RuleMatch

type RuleMatch struct {
	RuleName string
	Fields   map[string]string
}

type State

type State string
const (
	StateIdle       State = "idle"
	StateProcessing State = "processing"
	StateStopped    State = "stopped"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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