Versions in this module Expand all Collapse all v0 v0.0.1 Aug 17, 2020 Changes in this version + const DefaultIpnsCacheSize + var BaseLibP2P = fx.Options(fx.Provide(libp2p.UserAgent), fx.Provide(libp2p.PNet), ...) + var Core = fx.Options(fx.Provide(BlockService), fx.Provide(Dag), ...) + var IPNS = fx.Options(fx.Provide(RecordValidator)) + func BaseBlockstoreCtor(cacheOpts blockstore.CacheOpts, nilRepo bool, hashOnRead bool) ... + func BlockService(lc fx.Lifecycle, bs blockstore.Blockstore, rem exchange.Interface) blockservice.BlockService + func Dag(bs blockservice.BlockService) format.DAGService + func Datastore(repo repo.Repo) datastore.Datastore + func Files(mctx helpers.MetricsCtx, lc fx.Lifecycle, repo repo.Repo, ...) (*mfs.Root, error) + func FilestoreBlockstoreCtor(repo repo.Repo, bb BaseBlocks) (gclocker blockstore.GCLocker, gcbs blockstore.GCBlockstore, ...) + func GcBlockstoreCtor(bb BaseBlocks) (gclocker blockstore.GCLocker, gcbs blockstore.GCBlockstore, ...) + func Graphsync(lc fx.Lifecycle, mctx helpers.MetricsCtx, host libp2p.Host, ...) graphsync.GraphExchange + func IPFS(ctx context.Context, bcfg *BuildCfg) fx.Option + func Identity(cfg *config.Config) fx.Option + func IpnsRepublisher(repubPeriod time.Duration, recordLifetime time.Duration) func(lcProcess, namesys.NameSystem, repo.Repo, crypto.PrivKey) error + func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option + func Namesys(cacheSize int) func(rt routing.Routing, repo repo.Repo) (namesys.NameSystem, error) + func Networked(bcfg *BuildCfg, cfg *config.Config) fx.Option + func Offline(cfg *config.Config) fx.Option + func OfflineProviders(useStrategicProviding bool, reprovideStrategy string, reprovideInterval string) fx.Option + func Online(bcfg *BuildCfg, cfg *config.Config) fx.Option + func OnlineExchange(provide bool) interface + func OnlineProviders(useStrategicProviding bool, reprovideStrategy string, reprovideInterval string) fx.Option + func PeerID(id peer.ID) func() peer.ID + func PeerWith(peers ...peer.AddrInfo) fx.Option + func Peering(lc fx.Lifecycle, host host.Host) *peering.PeeringService + func Pinning(bstore blockstore.Blockstore, ds format.DAGService, repo repo.Repo) (pin.Pinner, error) + func PrivateKey(sk crypto.PrivKey) func(id peer.ID) (crypto.PrivKey, error) + func ProviderQueue(mctx helpers.MetricsCtx, lc fx.Lifecycle, repo repo.Repo) (*q.Queue, error) + func RecordValidator(ps peerstore.Peerstore) record.Validator + func RepoConfig(repo repo.Repo) (*config.Config, error) + func SimpleProvider(mctx helpers.MetricsCtx, lc fx.Lifecycle, queue *q.Queue, rt routing.Routing) provider.Provider + func SimpleProviderSys(isOnline bool) interface + func SimpleProviders(reprovideStrategy string, reprovideInterval string) fx.Option + func SimpleReprovider(reproviderInterval time.Duration) interface + func Storage(bcfg *BuildCfg, cfg *config.Config) fx.Option + type BaseBlocks blockstore.Blockstore + type BuildCfg struct + DisableEncryptedConnections bool + ExtraOpts map[string]bool + Host libp2p.HostOption + NilRepo bool + Online bool + Permanent bool + Repo repo.Repo + Routing libp2p.RoutingOption