mirror of
https://github.com/ProtonMail/go-proton-api.git
synced 2025-12-23 23:57:50 -05:00
37 lines
554 B
Go
37 lines
554 B
Go
package proton
|
|
|
|
import (
|
|
"github.com/ProtonMail/gluon/rfc822"
|
|
)
|
|
|
|
type Attachment struct {
|
|
ID string
|
|
|
|
Name string
|
|
Size int64
|
|
MIMEType rfc822.MIMEType
|
|
Disposition Disposition
|
|
Headers Headers
|
|
|
|
KeyPackets string
|
|
Signature string
|
|
}
|
|
|
|
type Disposition string
|
|
|
|
const (
|
|
InlineDisposition Disposition = "inline"
|
|
AttachmentDisposition Disposition = "attachment"
|
|
)
|
|
|
|
type CreateAttachmentReq struct {
|
|
MessageID string
|
|
|
|
Filename string
|
|
MIMEType rfc822.MIMEType
|
|
Disposition Disposition
|
|
ContentID string
|
|
|
|
Body []byte
|
|
}
|