client

package
v0.1.0-fix-7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReceiverClient

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

ReceiverClient is a receiver gRPC service client wrapper

func NewReceiverClient

func NewReceiverClient(address string) (*ReceiverClient, error)

NewReceiverClient return a ReceiverClient instance

func (*ReceiverClient) Close

func (client *ReceiverClient) Close() error

Close the receiver gPRC connection

func (*ReceiverClient) QueryReceivingObject added in v0.1.1

func (client *ReceiverClient) QueryReceivingObject(ctx context.Context, objectID uint64) (*servicetypes.PieceInfo, error)

QueryReceivingObject a syncing object info by object id

func (*ReceiverClient) ReceiveObjectPiece added in v0.1.1

ReceiveObjectPiece an object payload with object info

Jump to

Keyboard shortcuts

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