model

package
v0.0.0-...-4e69e3f Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Email string `yaml:"Email" json:"email,omitempty"`
	Name  string `yaml:"Name" json:"name,omitempty"`
}

Address represents an email address.

type Message

type Message struct {
	From     Address   `yaml:"From"`
	To       []Address `yaml:"To"`
	Cc       []Address `yaml:"Cc"`
	Bcc      []Address `yaml:"Bcc"`
	Subject  string    `yaml:"Subject"`
	BodyType string    `yaml:"BodyType"`
	Body     string    `yaml:"Body"`
}

Message represent an email message.

type Request

type Request struct {
	TemplateLang string                 `json:"templateLang"`
	TemplateName string                 `json:"templateName"`
	TemplateArgs map[string]interface{} `json:"templateArgs"`
	To           []Address              `json:"to"`
	Cc           []Address              `json:"cc"`
	Bcc          []Address              `json:"bcc"`
}

Request represents request parameters required to build and send an email.

Jump to

Keyboard shortcuts

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