Documentation
¶
Index ¶
- type Attachment
- type EmailModel
- func (m *EmailModel) AddMessage(msg *Message)
- func (m *EmailModel) BuildNewEmail() error
- func (m *EmailModel) ContainsMessage(id uint) bool
- func (m *EmailModel) DownloadAttachment(msg *Message, att Attachment) error
- func (m *EmailModel) GetEmail() string
- func (m *EmailModel) GetMessageContent(msg *Message) error
- func (m *EmailModel) ListEmailDomains() ([]string, error)
- func (m *EmailModel) UpdateEmailMessages() error
- type Message
- type MessageContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type EmailModel ¶
func (*EmailModel) AddMessage ¶
func (m *EmailModel) AddMessage(msg *Message)
func (*EmailModel) BuildNewEmail ¶
func (m *EmailModel) BuildNewEmail() error
func (*EmailModel) ContainsMessage ¶
func (m *EmailModel) ContainsMessage(id uint) bool
func (*EmailModel) DownloadAttachment ¶
func (m *EmailModel) DownloadAttachment(msg *Message, att Attachment) error
func (*EmailModel) GetEmail ¶
func (m *EmailModel) GetEmail() string
func (*EmailModel) GetMessageContent ¶
func (m *EmailModel) GetMessageContent(msg *Message) error
func (*EmailModel) ListEmailDomains ¶ added in v0.4.0
func (m *EmailModel) ListEmailDomains() ([]string, error)
func (*EmailModel) UpdateEmailMessages ¶
func (m *EmailModel) UpdateEmailMessages() error
type Message ¶
type Message struct {
Id uint `json:"id"`
From string `json:"from"`
Subject string `json:"subject"`
Date string `json:"date"`
Content MessageContent
}
func (*Message) DisplayCompleteEmail ¶
func (*Message) DisplayMessage ¶
type MessageContent ¶
type MessageContent struct {
Body string `json:"body"`
TextBody string `json:"textBody"`
HtmlBody string `json:"htmlBody"`
Attachments []Attachment `json:"attachments"`
}
Click to show internal directories.
Click to hide internal directories.