client

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0, MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageClient

type StorageClient struct {
	PeerStore peerstore.Peerstore
	// contains filtered or unexported fields
}

StorageClient starts storage deals with Boost over libp2p

func NewStorageClient

func NewStorageClient(addr address.Address, fullNodeApi v1api.FullNode) (*StorageClient, error)

func (*StorageClient) DealStatus

func (c *StorageClient) DealStatus(ctx context.Context, providerID peer.ID, dealUUid uuid.UUID) (*types.DealStatusResponse, error)

func (*StorageClient) StorageDeal

func (c *StorageClient) StorageDeal(ctx context.Context, params types.DealParams, providerID peer.ID) (*api.ProviderDealRejectionInfo, error)

Jump to

Keyboard shortcuts

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