modules

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0, MIT Imports: 54 Imported by: 34

Documentation

Index

Constants

View Source
const JWTSecretName = "auth-jwt-private"

Variables

This section is empty.

Functions

func APISecret

func APISecret(keystore types.KeyStore, lr repo.LockedRepo) (*dtypes.APIAlg, error)

func BuiltinBootstrap

func BuiltinBootstrap() (dtypes.BootstrapPeers, error)

func ChainBlockstore

func ChainBlockstore(r repo.LockedRepo) (dtypes.ChainBlockstore, error)

func ClientBlockstore

func ClientBlockstore(fstore dtypes.ClientFilestore) dtypes.ClientBlockstore

func ClientFstore

func ClientFstore(r repo.LockedRepo) (dtypes.ClientFilestore, error)

func ConfigBootstrap

func ConfigBootstrap(peers []string) func() (dtypes.BootstrapPeers, error)

func Datastore

func Datastore(r repo.LockedRepo) (dtypes.MetadataDS, error)

func GetParams

func GetParams(sbc *sectorbuilder.Config) error

func HandleDeals

func HandleDeals(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, h *deals.Provider)

func HandleIncomingBlocks

func HandleIncomingBlocks(mctx helpers.MetricsCtx, lc fx.Lifecycle, pubsub *pubsub.PubSub, s *chain.Syncer, h host.Host)

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 *retrieval.Miner)

func KeyStore

func KeyStore(lr repo.LockedRepo) (types.KeyStore, error)

func LoadGenesis

func LoadGenesis(genBytes []byte) func(dtypes.ChainBlockstore) Genesis

func LockedRepo

func LockedRepo(lr repo.LockedRepo) func(lc fx.Lifecycle) repo.LockedRepo

func NewClientDAGServiceDataTransfer

func NewClientDAGServiceDataTransfer(dag dtypes.ClientDAG) 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 NewProviderDAGServiceDataTransfer

func NewProviderDAGServiceDataTransfer(dag dtypes.StagingDAG) 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 NewSyncer

func NewSyncer(lc fx.Lifecycle, sm *stmgr.StateManager, bsync *blocksync.BlockSync, h host.Host) (*chain.Syncer, error)

func RecordValidator

func RecordValidator(ps peerstore.Peerstore) record.Validator

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 RetrievalResolver

func RetrievalResolver(l *discovery.Local) discovery.PeerResolver

func RunBlockSync

func RunBlockSync(h host.Host, svc *blocksync.BlockSyncService)

func RunDealClient

func RunDealClient(mctx helpers.MetricsCtx, lc fx.Lifecycle, c *deals.Client)

func RunHello

func RunHello(mctx helpers.MetricsCtx, lc fx.Lifecycle, h host.Host, svc *hello.Service)

func RunPeerMgr

func RunPeerMgr(mctx helpers.MetricsCtx, lc fx.Lifecycle, pmgr *peermgr.PeerMgr)

func SealTicketGen

func SealTicketGen(api api.FullNode) storage.TicketFn

func SectorBuilderConfig

func SectorBuilderConfig(storagePath string, threads uint, noprecommit, nocommit bool) func(dtypes.MetadataDS, api.FullNode) (*sectorbuilder.Config, error)

func SetGenesis

func SetGenesis(cs *store.ChainStore, g Genesis) error

func SetupBlockProducer

func SetupBlockProducer(lc fx.Lifecycle, ds dtypes.MetadataDS, api api.FullNode, epp gen.ElectionPoStProver) (*miner.Miner, error)

Types

type Genesis

type Genesis func() (*types.BlockHeader, error)

func ErrorGenesis

func ErrorGenesis() Genesis

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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