linstrom/ap/media.go
2024-01-30 11:26:41 +00:00

9 lines
354 B
Go

package ap
import "net/url"
type Media struct {
Type string `json:"type"` // Should probably always be "Image", "Video" or similar. Dunno if "Video" is correct
MediaType string `json:"mediaType"` // What media type the linked resource is. Something like "image/png"
Url url.URL `json:"url"` // Where to find the media file
}