Documentation ¶
Overview ¶
Package http implements a HTTP-based hook system. For each hook event, it will send a POST request to the specified endpoint. The body is a JSON-formatted object including the hook type, upload and request information. By responding with a JSON object, the response from tusd can be controlled.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpHook ¶
type HttpHook struct { Endpoint string MaxRetries int Backoff time.Duration ForwardHeaders []string // contains filtered or unexported fields }
func (HttpHook) InvokeHook ¶
func (h HttpHook) InvokeHook(hookReq hooks.HookRequest) (hookRes hooks.HookResponse, err error)
Click to show internal directories.
Click to hide internal directories.