hmail

package
v0.0.0-...-a8e4d9d Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	DisplayName string
	Description string
}

Action holds information about the action that triggered a transaction.

type Actor

type Actor struct {
	DisplayName string
}

Actor holds information about who or what initiated a transaction.

type Mail

type Mail struct {
	Headers textproto.MIMEHeader
	From    string
	To      []string
	Data    *MailContext

	RoutingKey string `json:"-"`
}

Mail defines the payload of the message sent to the postal-worker.

type MailContext

type MailContext struct {
	Subject       string
	Recipient     *Recipient
	Actor         *Actor
	Action        *Action
	Object        *Object
	OperationLogs *OperationLogs
}

MailContext holds all values needed in the email templates.

type Object

type Object struct {
	DisplayName string
	Uri         string
}

Object holds information about what the object of the transaction's action is.

type OperationLogs

type OperationLogs struct {
	Text string
}

type Recipient

type Recipient struct {
	DisplayName string
	Subject     string
	UrlHost     string
}

Recipient holds personalized information about the mail's recipient.

Jump to

Keyboard shortcuts

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