dependencies

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0, MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DepGenerator

type DepGenerator struct {
	ClientNewDataTransfer   NewDataTransfer
	ProviderNewDataTransfer NewDataTransfer
}

func NewDepGenerator

func NewDepGenerator() *DepGenerator

type NewDataTransfer

type NewDataTransfer func(ds datastore.Batching, cidListsDir string, dataTransferNetwork network2.DataTransferNetwork, transport datatransfer.Transport, storedCounter *storedcounter.StoredCounter) (datatransfer.Manager, error)

type StorageDependencies

type StorageDependencies struct {
	Ctx                               context.Context
	Epoch                             abi.ChainEpoch
	ProviderAddr                      address.Address
	ClientAddr                        address.Address
	ClientNode                        *testnodes.FakeClientNode
	ProviderNode                      *testnodes.FakeProviderNode
	SMState                           *testnodes.StorageMarketState
	TempFilePath                      string
	ProviderInfo                      storagemarket.StorageProviderInfo
	TestData                          *shared_testutil.Libp2pTestData
	PieceStore                        piecestore.PieceStore
	DTClient                          datatransfer.Manager
	DTProvider                        datatransfer.Manager
	PeerResolver                      *discoveryimpl.Local
	ClientDelayFakeCommonNode         testnodes.DelayFakeCommonNode
	ProviderClientDelayFakeCommonNode testnodes.DelayFakeCommonNode
	Fs                                filestore.FileStore
	StoredAsk                         *storedask.StoredAsk
}

StorageDependencies are the dependencies required to initialize a storage client/provider

Jump to

Keyboard shortcuts

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