grpcproxy

package
v2.4.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(clients *GrpcClients, storageMode string,
	accessLogger cache.Logger, errorLogger cache.Logger,
	numUploaders, maxQueuedUploads int) cache.Proxy

Types

type DataMessage

type DataMessage interface {
	GetData() []byte
}

type GrpcClients

type GrpcClients struct {
	// contains filtered or unexported fields
}

func NewGrpcClients

func NewGrpcClients(cc *grpc.ClientConn) *GrpcClients

func (*GrpcClients) CheckCapabilities

func (c *GrpcClients) CheckCapabilities(zstd bool) error

type RecvStream

type RecvStream[M DataMessage] interface {
	Recv() (M, error)
	CloseSend() error
}

type StreamReadCloser

type StreamReadCloser[M DataMessage] struct {
	Stream RecvStream[M]
	// contains filtered or unexported fields
}

func (*StreamReadCloser[M]) Close

func (s *StreamReadCloser[M]) Close() error

func (*StreamReadCloser[M]) Read

func (s *StreamReadCloser[M]) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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