client

package
v0.1.3-test-2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: GPL-3.0 Imports: 10 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 returns 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 queries a putting object info with object id

func (*UploaderClient) QueryUploadProgress added in v0.1.2

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

QueryUploadProgress is used to query upload object progress

Jump to

Keyboard shortcuts

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