summaryrefslogtreecommitdiff
path: root/internal/api/model/content.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/model/content.go')
-rw-r--r--internal/api/model/content.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/api/model/content.go b/internal/api/model/content.go
index 754495738..2f38b2351 100644
--- a/internal/api/model/content.go
+++ b/internal/api/model/content.go
@@ -18,14 +18,16 @@
package model
+import "io"
+
// Content wraps everything needed to serve a blob of content (some kind of media) through the API.
type Content struct {
// MIME content type
ContentType string
// ContentLength in bytes
ContentLength int64
- // Actual content blob
- Content []byte
+ // Actual content
+ Content io.Reader
}
// GetContentRequestForm describes a piece of content desired by the caller of the fileserver API.