tusd/pkg/handler
Marius 12c10bf62f
v2: Rework hooks system (#516)
* 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
2022-03-02 00:36:49 +01:00
..
body_reader.go core: Handle errors from reading request body centrally 2021-04-26 10:08:37 +02:00
composer.go core: Replace old LockerDataStore with new Locker 2019-09-12 12:37:43 +02:00
composer.mgo core: Remove deprecated DataStore option 2019-08-20 16:16:05 +02:00
composer_test.go core: Add back composer_test 2019-08-26 20:41:00 +02:00
concat_test.go core: Pass Upload interfaces to ConcatUploads 2019-09-19 12:14:25 +02:00
config.go v2: Rework hooks system (#516) 2022-03-02 00:36:49 +01:00
config_test.go core: Add context to DataStores 2019-09-15 13:43:59 +02:00
cors_test.go Merge branch 'master' of github.com:tus/tusd 2020-04-06 12:24:05 +02:00
datastore.go v2: Rework hooks system (#516) 2022-03-02 00:36:49 +01:00
doc.go core: Move packages into pkg/ and internal/ folders 2019-06-11 18:23:20 +02:00
error.go v2: Rework hooks system (#516) 2022-03-02 00:36:49 +01:00
get_test.go core: Allow numbers in mime types 2019-10-07 11:28:13 +02:00
handler.go WIP on DataStore refactor 2019-08-24 15:14:51 +02:00
handler_mock_test.go core: Pass Upload interfaces to ConcatUploads 2019-09-19 12:14:25 +02:00
head_test.go v2: Rework hooks system (#516) 2022-03-02 00:36:49 +01:00
hooks.go v2: Rework hooks system (#516) 2022-03-02 00:36:49 +01:00
http.go v2: Rework hooks system (#516) 2022-03-02 00:36:49 +01:00
log.go core: Move packages into pkg/ and internal/ folders 2019-06-11 18:23:20 +02:00
metrics.go v2: Rework hooks system (#516) 2022-03-02 00:36:49 +01:00
options_test.go core: Refactor DataStore 2019-08-25 22:10:55 +02:00
patch_test.go core: Add error constants 2021-10-25 11:54:02 +02:00
post_test.go handler: Use correct separation symbol for parsing Forwarded header (#433) 2020-10-12 12:36:55 +02:00
subtest_test.go WIP on DataStore refactor 2019-08-24 15:14:51 +02:00
terminate_test.go core: Provide HTTP request details to hooks 2019-09-19 11:15:48 +02:00
unrouted_handler.go v2: Rework hooks system (#516) 2022-03-02 00:36:49 +01:00
unrouted_handler_test.go Allow empty metadata values 2020-06-20 13:24:07 +02:00
utils_test.go gcsstore: Remove unnecessary typecasts and unused mocks (#313) 2019-10-09 14:44:13 +02:00