grpc

package
v0.0.0-...-8a59038 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortCaller

type PortCaller struct {
	proto.StorageClient
	// contains filtered or unexported fields
}

PortCaller is an RPC service caller.

func NewPortCaller

func NewPortCaller(stop <-chan struct{}, cc *grpc.ClientConn) *PortCaller

NewPortCaller returns a new caller for RPC service.

func (*PortCaller) DownloadStream

func (caller *PortCaller) DownloadStream(ctx context.Context, stream chan<- *proto.Payload) error

DownloadStream calls streaming RPC to fetch the data.

func (*PortCaller) UploadStream

func (caller *PortCaller) UploadStream(ctx context.Context, stream <-chan *proto.Payload) error

UploadStream calls streaming RPC to upload the data.

Jump to

Keyboard shortcuts

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