Documentation
¶
Index ¶
- func FromBase64(content string, options ...contractsai.AttachmentOption) contractsai.Attachment
- func FromByte(content []byte, options ...contractsai.AttachmentOption) contractsai.Attachment
- func FromID(id string) contractsai.ProviderFile
- func FromPath(path string, options ...contractsai.AttachmentOption) contractsai.Attachment
- func FromReader(reader io.Reader, options ...contractsai.AttachmentOption) contractsai.Attachment
- func FromStorage(path string, options ...contractsai.AttachmentOption) contractsai.Attachment
- func FromString(content string, options ...contractsai.AttachmentOption) contractsai.Attachment
- func FromURL(rawURL string, options ...contractsai.AttachmentOption) contractsai.Attachment
- func FromUpload(file contractsfilesystem.File, options ...contractsai.AttachmentOption) contractsai.Attachment
- func WithDisk(disk string) contractsai.AttachmentOption
- func WithMimeType(mimeType string) contractsai.AttachmentOption
- func WithTitle(title string) contractsai.AttachmentOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromBase64 ¶
func FromBase64(content string, options ...contractsai.AttachmentOption) contractsai.Attachment
func FromByte ¶
func FromByte(content []byte, options ...contractsai.AttachmentOption) contractsai.Attachment
func FromID ¶
func FromID(id string) contractsai.ProviderFile
func FromPath ¶
func FromPath(path string, options ...contractsai.AttachmentOption) contractsai.Attachment
func FromReader ¶
func FromReader(reader io.Reader, options ...contractsai.AttachmentOption) contractsai.Attachment
func FromStorage ¶
func FromStorage(path string, options ...contractsai.AttachmentOption) contractsai.Attachment
func FromString ¶
func FromString(content string, options ...contractsai.AttachmentOption) contractsai.Attachment
func FromURL ¶
func FromURL(rawURL string, options ...contractsai.AttachmentOption) contractsai.Attachment
func FromUpload ¶
func FromUpload(file contractsfilesystem.File, options ...contractsai.AttachmentOption) contractsai.Attachment
func WithDisk ¶
func WithDisk(disk string) contractsai.AttachmentOption
func WithMimeType ¶
func WithMimeType(mimeType string) contractsai.AttachmentOption
func WithTitle ¶
func WithTitle(title string) contractsai.AttachmentOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.