client

package
v0.1.1-dev-3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 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 UploaderClient

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

UploaderClient is an uploader gRPC service client wrapper

func NewUploaderClient

func NewUploaderClient(address string) (*UploaderClient, error)

NewUploaderClient return an UploaderClient instance

func (*UploaderClient) Close

func (client *UploaderClient) Close() error

Close the uploader gRPC client connection

func (*UploaderClient) PutObject

PutObject return grpc stream client, and be used to upload object payload.

func (*UploaderClient) QueryPuttingObject

func (client *UploaderClient) QueryPuttingObject(ctx context.Context, objectID uint64, opts ...grpc.CallOption) (
	*servicetypes.PieceInfo, error)

QueryPuttingObject query a putting object info with object id

Jump to

Keyboard shortcuts

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