sriracha/attachment.go

30 lines
483 B
Go

package sriracha
import "time"
type AttachmentType struct {
MIME string // MIME type.
Extension string // File extension.
}
// Attachment represents an attachment. It may be a normal file or a shortcut
// to an external resource via oEmbed.
type Attachment struct {
ID int
Post int
File string
Size int64
Hash string
Width int
Height int
Thumb string
ThumbWidth int
ThumbHeight int
Uploaded time.Time
}
// TODO support oEmbed instead of file