Squashed commit of the following:
commit e8b5b3751a86d86cae10e0bcf89caa481e5c3de6
Author: Marius <marius@transloadit.com>
Date: Sun Jun 19 12:15:22 2022 +0200
Fix generated mocks
commit 736e2e7bb6
Merge: 9d7096f1e69d9b
Author: Stefan Scheidewig <stefan.scheidewig@staffbase.com>
Date: Sat Jun 18 07:53:29 2022 +0200
Merge branch 'v2' into readcloser_in_getreader
commit 9d7096fcb3
Author: Stefan Scheidewig <stefan.scheidewig@staffbase.com>
Date: Tue May 24 14:16:01 2022 +0200
Return ReadCloser in getReader
* handler: Implement prototype of new locking back-end
* memorylocker2: Switch to channel for release notification
* handler: Update locker interface
* handler: Add method to close body with error
* memorylocker: Replace with new implementation
* filelocker: Adjust methods to match interface
* handler: Introduce new httpContext
* handler: Implement upload interruption
* handler: Adjust tests to new inferfaces
* handler, memorylocker: Cancel context to avoid leaks
* ci: Remove plugin hook handler
* Rework error type from interface to struct
* Avoid writing to http.ResponseWriter directly
* Allow hooks to modify response
* Add example for HTTP hooks using Python
* Implement new plugin system using Hashicorp/go-plugin
* Enable returning partial HTTPResponses
* Remove some (unnecessary) error handling
* Forward stdout and stderr from plugin to tusd
* docs: Update examples
* cli: Update filehooks to new system
* cli: Renovate gRPC hooks
* docs: Correct casing of gRPC
* misc: Documentation, better examples, and code structure