okami.mom/albedo
git clone https://git.nkp.pet/okami.mom/albedo
6e82811
main
1package daemon 2 3type ImageMimeType string 4 5const ( 6ImagePNG ImageMimeType = "image/png" 7ImageJPEG ImageMimeType = "image/jpeg" 8ImageWEBP ImageMimeType = "image/webp" 9) 10 11type ImageMetadata struct { 12MimeType ImageMimeType `json:"mime_type"` 13Width int `json:"width"` 14Height int `json:"height"` 15Bytes int `json:"bytes"` 16} 17 18type ImageAttachment struct { 19Data string `json:"data"` 20ImageMetadata 21}