model

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2018 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 JSONMessageAttachmentV1

type JSONMessageAttachmentV1 struct {
	FileName     string `json:"filename"`
	ContentType  string `json:"content-type"`
	DownloadLink string `json:"download-link"`
	ViewLink     string `json:"view-link"`
	MD5          string `json:"md5"`
}

type JSONMessageBodyV1

type JSONMessageBodyV1 struct {
	Text string `json:"text"`
	HTML string `json:"html"`
}

JSONMessageBodyV1 contains the Text and HTML versions of the message body

type JSONMessageHeaderV1

type JSONMessageHeaderV1 struct {
	Mailbox string    `json:"mailbox"`
	ID      string    `json:"id"`
	From    string    `json:"from"`
	To      []string  `json:"to"`
	Subject string    `json:"subject"`
	Date    time.Time `json:"date"`
	Size    int64     `json:"size"`
}

JSONMessageHeaderV1 contains the basic header data for a message

type JSONMessageV1

type JSONMessageV1 struct {
	Mailbox     string                     `json:"mailbox"`
	ID          string                     `json:"id"`
	From        string                     `json:"from"`
	To          []string                   `json:"to"`
	Subject     string                     `json:"subject"`
	Date        time.Time                  `json:"date"`
	Size        int64                      `json:"size"`
	Body        *JSONMessageBodyV1         `json:"body"`
	Header      mail.Header                `json:"header"`
	Attachments []*JSONMessageAttachmentV1 `json:"attachments"`
}

JSONMessageV1 contains the same data as the header plus a JSONMessageBody

Jump to

Keyboard shortcuts

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