More work on the API. Primarely defining jsonapi types
This commit is contained in:
parent
4f4d05a335
commit
0ed50aca60
13 changed files with 165 additions and 48 deletions
|
@ -24,6 +24,10 @@ type MediaMetadata struct {
|
|||
// Descriptive name for a media file
|
||||
// Emote name for example or servername.filetype for a server's icon
|
||||
Name string
|
||||
// Alternative description of the media file's content
|
||||
AltText string
|
||||
// Whether the media is to be blurred by default
|
||||
Blurred bool
|
||||
}
|
||||
|
||||
func (s *Storage) NewMediaMetadata(location, mediaType, name string) (*MediaMetadata, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue