plugin

command
v2.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 4 Imported by: 0

README

Example plugin hook

This directory contains an example for a plugin-based hook handler. Tusd supports plugins via the go-plugin package, where plugins run as standalone processes and communicate with tusd via local sockets using Go's net/rpc package.

Build

To build the plugin, run make hook_handler. This will create a binary called hook_handler that is then later run by tusd.

Run

To start tusd with the plugin, run tusd -hooks-plugin ./hook_handler. The output should reflect that the plugin was loaded successfully. Whenever enabled hook events are triggered, they will be handled by the plugin.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL