client

package
v0.2.0-fix-4 Latest Latest
Warning

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

Go to latest
Published: May 19, 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 DownloaderClient

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

DownloaderClient is a downloader gRPC service client wrapper

func NewDownloaderClient

func NewDownloaderClient(address string) (*DownloaderClient, error)

NewDownloaderClient returns a DownloaderClient instance

func (*DownloaderClient) Close

func (client *DownloaderClient) Close() error

Close the download gPRC connection

func (*DownloaderClient) GetBucketReadQuota

func (client *DownloaderClient) GetBucketReadQuota(ctx context.Context, bucketInfo *storagetypes.BucketInfo, yearMonth string, opts ...grpc.CallOption) (*types.GetBucketReadQuotaResponse, error)

GetBucketReadQuota gets the quota info of the specified month

func (*DownloaderClient) GetEndpointBySpAddress added in v0.1.1

func (client *DownloaderClient) GetEndpointBySpAddress(ctx context.Context, spAddress string, opts ...grpc.CallOption) (string, error)

GetEndpointBySpAddress get endpoint by sp address

func (*DownloaderClient) GetObject

GetObject downloads the payload of the object

func (*DownloaderClient) ListBucketReadRecord

func (client *DownloaderClient) ListBucketReadRecord(ctx context.Context, bucketInfo *storagetypes.BucketInfo, startTimestampUs, endTimestampUs, maxRecordNum int64, opts ...grpc.CallOption) (*types.ListBucketReadRecordResponse, error)

ListBucketReadRecord get read record list of the specified time range

Jump to

Keyboard shortcuts

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