Documentation ¶
Index ¶
- Constants
- func APISecret(keystore types.KeyStore, lr repo.LockedRepo) (*dtypes.APIAlg, error)
- func BuiltinBootstrap() (dtypes.BootstrapPeers, error)
- func ChainBlockservice(bs dtypes.ChainBlockstore, rem dtypes.ChainExchange) dtypes.ChainBlockService
- func ChainBlockstore(r repo.LockedRepo) (dtypes.ChainBlockstore, error)
- func ChainExchange(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, rt routing.Routing, ...) dtypes.ChainExchange
- func ChainGCBlockstore(bs dtypes.ChainBlockstore, gcl dtypes.ChainGCLocker) dtypes.ChainGCBlockstore
- func ChainStore(lc fx.Lifecycle, bs dtypes.ChainBlockstore, ds dtypes.MetadataDS, ...) *store.ChainStore
- func ClientBlockstore(fstore dtypes.ClientFilestore) dtypes.ClientBlockstore
- func ClientDAG(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.ClientBlockstore, ...) dtypes.ClientDAG
- func ClientFstore(r repo.LockedRepo) (dtypes.ClientFilestore, error)
- func ClientGraphsync(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.ClientBlockstore, ...) dtypes.ClientGraphsync
- func ConfigBootstrap(peers []string) func() (dtypes.BootstrapPeers, error)
- func Datastore(r repo.LockedRepo) (dtypes.MetadataDS, error)
- func GetParams(sbc *sectorbuilder.Config) error
- func HandleDeals(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, ...)
- func HandleIncomingBlocks(mctx helpers.MetricsCtx, lc fx.Lifecycle, pubsub *pubsub.PubSub, ...)
- func HandleIncomingMessages(mctx helpers.MetricsCtx, lc fx.Lifecycle, pubsub *pubsub.PubSub, ...)
- func HandleRetrieval(host host.Host, lc fx.Lifecycle, m retrievalmarket.RetrievalProvider)
- func KeyStore(lr repo.LockedRepo) (types.KeyStore, error)
- func LoadGenesis(genBytes []byte) func(dtypes.ChainBlockstore) Genesis
- func LockedRepo(lr repo.LockedRepo) func(lc fx.Lifecycle) repo.LockedRepo
- func MessagePool(lc fx.Lifecycle, sm *stmgr.StateManager, ps *pubsub.PubSub, ...) (*messagepool.MessagePool, error)
- func NewClientDAGServiceDataTransfer(h host.Host, gs dtypes.ClientGraphsync) dtypes.ClientDataTransfer
- func NewClientDealStore(ds dtypes.MetadataDS) dtypes.ClientDealStore
- func NewClientRequestValidator(deals dtypes.ClientDealStore) *storageimpl.ClientRequestValidator
- func NewLocalDiscovery(ds dtypes.MetadataDS) *discovery.Local
- func NewProviderDAGServiceDataTransfer(h host.Host, gs dtypes.StagingGraphsync) dtypes.ProviderDataTransfer
- func NewProviderDealStore(ds dtypes.MetadataDS) dtypes.ProviderDealStore
- func NewProviderRequestValidator(deals dtypes.ProviderDealStore) *storageimpl.ProviderRequestValidator
- func NewSyncer(lc fx.Lifecycle, sm *stmgr.StateManager, bsync *blocksync.BlockSync, ...) (*chain.Syncer, error)
- func RecordValidator(ps peerstore.Peerstore) record.Validator
- func RegisterClientValidator(crv *deals.ClientRequestValidator, dtm dtypes.ClientDataTransfer)
- func RegisterProviderValidator(mrv *deals.ProviderRequestValidator, dtm dtypes.ProviderDataTransfer)
- func RetrievalClient(h host.Host, bs dtypes.ClientBlockstore, pmgr *paych.Manager, ...) retrievalmarket.RetrievalClient
- func RetrievalProvider(sblks *sectorblocks.SectorBlocks, full api.FullNode) retrievalmarket.RetrievalProvider
- func RetrievalResolver(l *discovery.Local) retrievalmarket.PeerResolver
- func RunBlockSync(h host.Host, svc *blocksync.BlockSyncService)
- func RunDealClient(mctx helpers.MetricsCtx, lc fx.Lifecycle, c storagemarket.StorageClient)
- func RunHello(mctx helpers.MetricsCtx, lc fx.Lifecycle, h host.Host, svc *hello.Service)
- func RunPeerMgr(mctx helpers.MetricsCtx, lc fx.Lifecycle, pmgr *peermgr.PeerMgr)
- func SealTicketGen(api api.FullNode) sealing.TicketFn
- func SectorBuilder(cfg *sectorbuilder.Config, ds dtypes.MetadataDS) (*sectorbuilder.SectorBuilder, error)
- func SectorBuilderConfig(storagePath string, threads uint, noprecommit, nocommit bool) func(dtypes.MetadataDS, api.FullNode) (*sectorbuilder.Config, error)
- func SetGenesis(cs *store.ChainStore, g Genesis) error
- func SetupBlockProducer(lc fx.Lifecycle, ds dtypes.MetadataDS, api api.FullNode, ...) (*miner.Miner, error)
- func StagingBlockstore(r repo.LockedRepo) (dtypes.StagingBlockstore, error)
- func StagingDAG(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.StagingBlockstore, ...) (dtypes.StagingDAG, error)
- func StagingGraphsync(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.StagingBlockstore, ...) dtypes.StagingGraphsync
- func StorageClient(h host.Host, dag dtypes.ClientDAG, dataTransfer dtypes.ClientDataTransfer, ...) storagemarket.StorageClient
- func StorageMiner(mctx helpers.MetricsCtx, lc fx.Lifecycle, api api.FullNode, h host.Host, ...) (*storage.Miner, error)
- func StorageProvider(ds dtypes.MetadataDS, dag dtypes.StagingDAG, ...) (storagemarket.StorageProvider, error)
- type Genesis
Constants ¶
const JWTSecretName = "auth-jwt-private"
Variables ¶
This section is empty.
Functions ¶
func BuiltinBootstrap ¶
func BuiltinBootstrap() (dtypes.BootstrapPeers, error)
func ChainBlockservice ¶
func ChainBlockservice(bs dtypes.ChainBlockstore, rem dtypes.ChainExchange) dtypes.ChainBlockService
func ChainBlockstore ¶
func ChainBlockstore(r repo.LockedRepo) (dtypes.ChainBlockstore, error)
func ChainExchange ¶
func ChainExchange(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, rt routing.Routing, bs dtypes.ChainGCBlockstore) dtypes.ChainExchange
func ChainGCBlockstore ¶
func ChainGCBlockstore(bs dtypes.ChainBlockstore, gcl dtypes.ChainGCLocker) dtypes.ChainGCBlockstore
func ChainStore ¶
func ChainStore(lc fx.Lifecycle, bs dtypes.ChainBlockstore, ds dtypes.MetadataDS, syscalls *types.VMSyscalls) *store.ChainStore
func ClientBlockstore ¶
func ClientBlockstore(fstore dtypes.ClientFilestore) dtypes.ClientBlockstore
func ClientDAG ¶
func ClientDAG(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.ClientBlockstore, rt routing.Routing, h host.Host) dtypes.ClientDAG
ClientDAG is a DAGService for the ClientBlockstore
func ClientFstore ¶
func ClientFstore(r repo.LockedRepo) (dtypes.ClientFilestore, error)
func ClientGraphsync ¶ added in v0.2.1
func ClientGraphsync(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.ClientBlockstore, h host.Host) dtypes.ClientGraphsync
ClientGraphsync creates a graphsync instance which reads and writes blocks to the ClientBlockstore
func ConfigBootstrap ¶
func ConfigBootstrap(peers []string) func() (dtypes.BootstrapPeers, error)
func Datastore ¶
func Datastore(r repo.LockedRepo) (dtypes.MetadataDS, error)
func HandleDeals ¶
func HandleDeals(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, h storagemarket.StorageProvider)
func HandleIncomingBlocks ¶
func HandleIncomingMessages ¶
func HandleIncomingMessages(mctx helpers.MetricsCtx, lc fx.Lifecycle, pubsub *pubsub.PubSub, mpool *messagepool.MessagePool)
func HandleRetrieval ¶
func HandleRetrieval(host host.Host, lc fx.Lifecycle, m retrievalmarket.RetrievalProvider)
func LoadGenesis ¶
func LoadGenesis(genBytes []byte) func(dtypes.ChainBlockstore) Genesis
func LockedRepo ¶
func LockedRepo(lr repo.LockedRepo) func(lc fx.Lifecycle) repo.LockedRepo
func MessagePool ¶
func MessagePool(lc fx.Lifecycle, sm *stmgr.StateManager, ps *pubsub.PubSub, ds dtypes.MetadataDS) (*messagepool.MessagePool, error)
func NewClientDAGServiceDataTransfer ¶
func NewClientDAGServiceDataTransfer(h host.Host, gs dtypes.ClientGraphsync) dtypes.ClientDataTransfer
NewClientDAGServiceDataTransfer returns a data transfer manager that just uses the clients's Client DAG service for transfers
func NewClientDealStore ¶
func NewClientDealStore(ds dtypes.MetadataDS) dtypes.ClientDealStore
NewClientDealStore creates a statestore for the client to store its deals
func NewClientRequestValidator ¶ added in v0.2.1
func NewClientRequestValidator(deals dtypes.ClientDealStore) *storageimpl.ClientRequestValidator
func NewLocalDiscovery ¶ added in v0.2.1
func NewLocalDiscovery(ds dtypes.MetadataDS) *discovery.Local
func NewProviderDAGServiceDataTransfer ¶
func NewProviderDAGServiceDataTransfer(h host.Host, gs dtypes.StagingGraphsync) dtypes.ProviderDataTransfer
NewProviderDAGServiceDataTransfer returns a data transfer manager that just uses the provider's Staging DAG service for transfers
func NewProviderDealStore ¶
func NewProviderDealStore(ds dtypes.MetadataDS) dtypes.ProviderDealStore
NewProviderDealStore creates a statestore for the client to store its deals
func NewProviderRequestValidator ¶ added in v0.2.1
func NewProviderRequestValidator(deals dtypes.ProviderDealStore) *storageimpl.ProviderRequestValidator
func RecordValidator ¶
RecordValidator provides namesys compatible routing record validator
func RegisterClientValidator ¶
func RegisterClientValidator(crv *deals.ClientRequestValidator, dtm dtypes.ClientDataTransfer)
RegisterClientValidator is an initialization hook that registers the client request validator with the data transfer module as the validator for StorageDataTransferVoucher types
func RegisterProviderValidator ¶
func RegisterProviderValidator(mrv *deals.ProviderRequestValidator, dtm dtypes.ProviderDataTransfer)
RegisterProviderValidator is an initialization hook that registers the provider request validator with the data transfer module as the validator for StorageDataTransferVoucher types
func RetrievalClient ¶ added in v0.2.1
func RetrievalClient(h host.Host, bs dtypes.ClientBlockstore, pmgr *paych.Manager, payapi payapi.PaychAPI) retrievalmarket.RetrievalClient
RetrievalClient creates a new retrieval client attached to the client blockstore
func RetrievalProvider ¶ added in v0.2.1
func RetrievalProvider(sblks *sectorblocks.SectorBlocks, full api.FullNode) retrievalmarket.RetrievalProvider
RetrievalProvider creates a new retrieval provider attached to the provider blockstore
func RetrievalResolver ¶
func RetrievalResolver(l *discovery.Local) retrievalmarket.PeerResolver
func RunBlockSync ¶
func RunBlockSync(h host.Host, svc *blocksync.BlockSyncService)
func RunDealClient ¶
func RunDealClient(mctx helpers.MetricsCtx, lc fx.Lifecycle, c storagemarket.StorageClient)
func RunPeerMgr ¶
func SectorBuilder ¶
func SectorBuilder(cfg *sectorbuilder.Config, ds dtypes.MetadataDS) (*sectorbuilder.SectorBuilder, error)
func SectorBuilderConfig ¶
func SetGenesis ¶
func SetGenesis(cs *store.ChainStore, g Genesis) error
func SetupBlockProducer ¶
func StagingBlockstore ¶ added in v0.2.1
func StagingBlockstore(r repo.LockedRepo) (dtypes.StagingBlockstore, error)
StagingBlockstore creates a blockstore for staging blocks for a miner in a storage deal, prior to sealing
func StagingDAG ¶
func StagingDAG(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.StagingBlockstore, rt routing.Routing, h host.Host) (dtypes.StagingDAG, error)
StagingDAG is a DAGService for the StagingBlockstore
func StagingGraphsync ¶ added in v0.2.1
func StagingGraphsync(mctx helpers.MetricsCtx, lc fx.Lifecycle, ibs dtypes.StagingBlockstore, h host.Host) dtypes.StagingGraphsync
StagingGraphsync creates a graphsync instance which reads and writes blocks to the StagingBlockstore
func StorageClient ¶ added in v0.2.1
func StorageClient(h host.Host, dag dtypes.ClientDAG, dataTransfer dtypes.ClientDataTransfer, discovery *discovery.Local, deals dtypes.ClientDealStore, scn storagemarket.StorageClientNode) storagemarket.StorageClient
func StorageMiner ¶
func StorageProvider ¶ added in v0.2.1
func StorageProvider(ds dtypes.MetadataDS, dag dtypes.StagingDAG, dataTransfer dtypes.ProviderDataTransfer, spn storagemarket.StorageProviderNode) (storagemarket.StorageProvider, error)
Types ¶
type Genesis ¶
type Genesis func() (*types.BlockHeader, error)
func ErrorGenesis ¶
func ErrorGenesis() Genesis