Documentation ¶
Index ¶
- type UploaderClient
- func (client *UploaderClient) Close() error
- func (client *UploaderClient) PutObject(ctx context.Context, opts ...grpc.CallOption) (types.UploaderService_PutObjectClient, error)
- func (client *UploaderClient) QueryPuttingObject(ctx context.Context, objectID uint64, opts ...grpc.CallOption) (*servicetypes.PieceInfo, error)
- func (client *UploaderClient) QueryUploadProgress(ctx context.Context, objectID uint64, opts ...grpc.CallOption) (servicetypes.JobState, error)
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 ¶
func (client *UploaderClient) PutObject(ctx context.Context, opts ...grpc.CallOption) (types.UploaderService_PutObjectClient, error)
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
Click to show internal directories.
Click to hide internal directories.