diff options
Diffstat (limited to 'internal/api/model/content.go')
-rw-r--r-- | internal/api/model/content.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/api/model/content.go b/internal/api/model/content.go index 94b32d112..4c0151c2c 100644 --- a/internal/api/model/content.go +++ b/internal/api/model/content.go @@ -21,6 +21,7 @@ package model import ( "io" "net/url" + "time" ) // Content wraps everything needed to serve a blob of content (some kind of media) through the API. @@ -29,6 +30,8 @@ type Content struct { ContentType string // ContentLength in bytes ContentLength int64 + // Time when the content was last updated. + ContentUpdated time.Time // Actual content Content io.ReadCloser // Resource URL to forward to if the file can be fetched from the storage directly (e.g signed S3 URL) |