Heya folks, Really enjoying Tus so far.
Is there a way to set HttpHooks in tusd programmatically? I’ve dug through the docs and source for a few hours now and can only seem to references to setting web hooks via the CLI. This isn’t ideal for my specific use case, so I was really hoping I could set it programmatically when I initialize the handler.
I’d like to be able to do something like this:
handler, err := tusd.NewHandler(tusd.Config {
BasePath: "/files/",
StoreComposer: composer,
NotifyCompleteUploads: true,
})
handler.CompletedUploads = tusd.NewHookEvent(<endpoint Info>)
And sort of just have it do the post-upload completion hooks automatically. Am I missing something obvious here?