Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct {
Type Type `json:"type"`
URL string `json:"url,omitempty"`
Name string `json:"name,omitempty"`
MIME string `json:"mime,omitempty"`
Size int64 `json:"size,omitempty"`
Data []byte `json:"-"`
Source string `json:"source,omitempty"`
CreatedAt time.Time `json:"created_at"`
Raw any `json:"-"`
}
func ExtractFromEvent ¶
func ExtractFromEvent(ev event.Event) []Attachment
func ExtractText ¶
func ExtractText(text string) []Attachment
type History ¶
type History struct {
// contains filtered or unexported fields
}
func NewHistory ¶
func (*History) Add ¶
func (h *History) Add(key string, items ...Attachment)
Click to show internal directories.
Click to hide internal directories.