fake-smtp/internal/model/email.go
2020-04-18 23:15:21 +02:00

28 lines
490 B
Go

package model
import (
"net/mail"
"time"
)
type Email struct {
ID int `storm:"id,increment"`
HTML string
Text string
Headers map[string][]string
From []*mail.Address
To []*mail.Address
Cc []*mail.Address
Cci []*mail.Address
Subject string
SentAt time.Time
Attachments []*Attachment
Seen bool `storm:"index"`
}
type Attachment struct {
Name string
ContentType string
Data []byte
}