12c10bf62f
* 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 |
||
---|---|---|
.. | ||
hooks | ||
server | ||
README.md | ||
apache2.conf | ||
nginx.conf |
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.