Documentation ¶
Overview ¶
Package grpc implements a gRPC-based hook system. For each hook event, the InvokeHook procedure is invoked with additional details about the hook type, upload and request. The Protocol Buffers are defined in github.com/tus/tusd/v2/pkg/hooks/grpc/proto/hook.proto.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcHook ¶
type GrpcHook struct { Endpoint string MaxRetries int Backoff time.Duration Client pb.HookHandlerClient }
func (*GrpcHook) InvokeHook ¶
func (g *GrpcHook) InvokeHook(hookReq hooks.HookRequest) (hookRes hooks.HookResponse, err error)
Click to show internal directories.
Click to hide internal directories.