Help us shape the future of Go! Take the 2026 Go Developer Survey

grpc

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 8 Imported by: 1

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)

func (*GrpcHook) Setup

func (g *GrpcHook) Setup() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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