client

package
v0.1.2-fix-2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayClient

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

GatewayClient is a http client wrapper

func NewGatewayClient

func NewGatewayClient(address string) (*GatewayClient, error)

NewGatewayClient return a gateway grpc client instance, and use http://ip:port or http://domain_name as address

func (*GatewayClient) ReplicateObjectPieceStream added in v0.1.1

func (client *GatewayClient) ReplicateObjectPieceStream(objectID uint64, pieceSize uint32, redundancyIdx uint32,
	approval *p2ptypes.GetApprovalResponse, objectDataReader io.Reader) (integrityHash []byte, signature []byte, err error)

ReplicateObjectPieceStream replicates object piece stream to the target storage-provider.

Jump to

Keyboard shortcuts

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