tusd/examples
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
..
hooks v2: Rework hooks system (#516) 2022-03-02 00:36:49 +01:00
server docs: Update server example for new package paths 2019-10-16 18:06:51 +02:00
README.md v2: Rework hooks system (#516) 2022-03-02 00:36:49 +01:00
apache2.conf misc: Remove dots from folders 2019-09-12 13:10:51 +02:00
nginx.conf Use new URL for public tus demo server 2020-10-02 12:44:12 +02:00

README.md

Examples

This directory contains following examples:

  • apache2.conf is the recommended minimum configuration for an Apache2 proxy in front of tusd.
  • nginx.conf is the recommended minimum configuration for an Nginx proxy in front of tusd.
  • server/ is an example of how to the tusd package embedded in your own Go application.
  • hooks/file/ are Bash scripts for file hook implementations.
  • hooks/http/ is a Python HTTP server as the HTTP hook implementation.
  • hooks/grpc/ is a Python gRPC server as the gRPC hook implementation.
  • hooks/plugin/ is a Go plugin usable with the plugin hooks.