sriracha/attachment.go
2023-04-20 20:03:02 -07:00

24 lines
382 B
Go

package sriracha
import "time"
// 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