models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: NCSA 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 `json:"email"`
	Name  string `json:"name,omitempty"`
}

type Content

type Content struct {
	TemplateID string `json:"template_id"`
}

type MailInfo

type MailInfo struct {
	Recipients []Recipient `json:"recipients"`
	Content    Content     `json:"content"`
}

type MailList

type MailList struct {
	ID      string   `json:"id"`
	UserIDs []string `json:"userIds"`
}

type MailListList

type MailListList struct {
	MailLists []MailList `json:"mailLists"`
}

type MailOrder

type MailOrder struct {
	IDs      []string `json:"ids"`
	Template string   `json:"template"`
}

type MailOrderList

type MailOrderList struct {
	ListID   string `json:"listId"`
	Template string `json:"template"`
}

type MailStatus

type MailStatus struct {
	Results MailStatusResults `json:"results"`
}

type MailStatusResults

type MailStatusResults struct {
	Rejected int `json:"total_rejected_recipients"`
	Accepted int `json:"total_accepted_recipients"`
}

type Recipient

type Recipient struct {
	Address       Address       `json:"address"`
	Substitutions Substitutions `json:"substitution_data,omitempty"`
}

type Substitutions

type Substitutions map[string]interface{}

type UserInfo

type UserInfo struct {
	ID        string `json:"id"`
	Username  string `json:"username"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Email     string `json:"email"`
}

Jump to

Keyboard shortcuts

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