Documentation
¶
Overview ¶
Package media defines bounded media preparation and storage-neutral blob interfaces. Applications retain authorization, references, lifecycle, and presentation policy.
Index ¶
Constants ¶
View Source
const ( KindImage = "image" KindAttachment = "attachment" )
Variables ¶
Functions ¶
Types ¶
type Prepared ¶
type Prepared struct {
Digest [32]byte
Data []byte
MediaType string
Kind string
OriginalName string
Width int
Height int
}
Prepared is a sanitized, bounded object ready for durable storage. Raster images are decoded and re-encoded so source metadata and unparsed trailing bytes are not retained. PDFs are attachments and are never inline media.
Click to show internal directories.
Click to hide internal directories.