This commit is contained in:
binwiederhier
2026-08-27 20:16:48 +00:00
parent 7826c86f67
commit 10cb6506f8
3 changed files with 55 additions and 52 deletions
+1 -1
View File
@@ -101,7 +101,6 @@ func (m *Message) ForJSON() *Message {
return m
}
// Attachment represents a file attachment on a message
// Size returns an approximate byte size of the variable-length, publisher-controlled parts of a
// message. It is used to budget cache replays, so it deliberately counts every field a publisher
// can grow rather than trying to match the exact wire size.
@@ -120,6 +119,7 @@ func (m *Message) Size() int {
return size
}
// Attachment represents a file attachment on a message
type Attachment struct {
Name string `json:"name"`
Type string `json:"type,omitempty"`