24 lines
382 B
Go
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
|