Debian Codegraph @

attachment_types.go

raw
1 package proton
2
3 import (
4 "github.com/ProtonMail/gluon/rfc822"
5 )
6
7 type Attachment struct {
8 ID string
9
10 Name string
11 Size int64
12 MIMEType rfc822.MIMEType
13 Disposition Disposition
14 Headers Headers
15
16 KeyPackets string
17 Signature string
18 }
19
20 type Disposition string
21
22 const (
23 InlineDisposition Disposition = "inline"
24 AttachmentDisposition Disposition = "attachment"
25 )
26
27 type CreateAttachmentReq struct {
28 MessageID string
29
30 Filename string
31 MIMEType rfc822.MIMEType
32 Disposition Disposition
33 ContentID string
34
35 Body []byte
36 }