gotosocial/internal/media
tobi 6ebdc306ed
[bugfix] Close reader gracefully when streaming recache of remote media to fileserver api caller (#1281)
* close pipereader on failed data function

* gently slurp the bytes

* readability updates

* go fmt

* tidy up file server tests + add more cases

* start moving io wrappers to separate iotools package. Remove use of buffering while piping recache stream

Signed-off-by: kim <grufwub@gmail.com>

* add license text

Signed-off-by: kim <grufwub@gmail.com>
Co-authored-by: kim <grufwub@gmail.com>
2022-12-21 11:17:43 +01:00
..
test [feature] Enable basic video support (mp4 only) (#1274) 2022-12-17 04:38:56 +00:00
image.go [feature] Enable basic video support (mp4 only) (#1274) 2022-12-17 04:38:56 +00:00
manager.go [feature] Start implementing refetch of lost media files via /api/v1/admin/media_refetch (#1221) 2022-12-10 21:43:11 +00:00
manager_test.go [bugfix] Close reader gracefully when streaming recache of remote media to fileserver api caller (#1281) 2022-12-21 11:17:43 +01:00
media_test.go [feature] Start implementing refetch of lost media files via /api/v1/admin/media_refetch (#1221) 2022-12-10 21:43:11 +00:00
png-stripper.go [bugfix] Allow processing of .png files where checksum is not correct (#487) 2022-04-25 14:45:44 +02:00
processingemoji.go [feature] PATCH /api/v1/admin/custom_emojis/{id} endpoint (#1061) 2022-11-24 18:12:07 +00:00
processingmedia.go [feature] Enable basic video support (mp4 only) (#1274) 2022-12-17 04:38:56 +00:00
prunemeta.go [feature] allow uncaching of other media types (#1234) 2022-12-12 12:22:19 +01:00
prunemeta_test.go [chore] bump gruf/go-store to v2 (#953) 2022-11-05 11:10:19 +00:00
pruneorphaned.go [bugfix] Avoid accidentally marking changed emojis as orphaned + pruning them (#1188) 2022-11-30 16:20:57 +01:00
pruneorphaned_test.go [feature] Add admin media prune orphaned CLI command (#1146) 2022-11-25 17:23:42 +00:00
pruneremote.go [feature] allow uncaching of other media types (#1234) 2022-12-12 12:22:19 +01:00
pruneremote_test.go [feature] allow uncaching of other media types (#1234) 2022-12-12 12:22:19 +01:00
pruneunusedlocal.go [feature] allow uncaching of other media types (#1234) 2022-12-12 12:22:19 +01:00
pruneunusedlocal_test.go [chore] Update bun / sqlite versions; update gtsmodels (#754) 2022-08-15 11:35:05 +01:00
refetch.go [feature] Start implementing refetch of lost media files via /api/v1/admin/media_refetch (#1221) 2022-12-10 21:43:11 +00:00
refetch_test.go [feature] Start implementing refetch of lost media files via /api/v1/admin/media_refetch (#1221) 2022-12-10 21:43:11 +00:00
types.go [feature] Enable basic video support (mp4 only) (#1274) 2022-12-17 04:38:56 +00:00
util.go [feature] Enable basic video support (mp4 only) (#1274) 2022-12-17 04:38:56 +00:00
video.go [feature] Enable basic video support (mp4 only) (#1274) 2022-12-17 04:38:56 +00:00