Versions in this module Expand all Collapse all v0 v0.7.5 May 30, 2022 Changes in this version + var Defaults = func(o *Options) error + type Option func(*Options) error + func Addrs(addrs []multiaddr.Multiaddr) Option + func BootstrapPeers(addrs []multiaddr.Multiaddr) Option + func BucketSize(bucketSize int) Option + func Datastore(ds ds.Batching) Option + func DelegateHTTPClient(c *http.Client) Option + func DisableProvCounts() Option + func DisableProvGC() Option + func DisableProviders() Option + func DisableValues() Option + func EnableRelay() Option + func ID(id crypto.PrivKey) Option + func Limiter(l chan struct{}) Option + func Peerstore(ps peerstore.Peerstore) Option + func ProtocolPrefix(pfx protocol.ID) Option + func ProviderStoreBuilder(builder func(Options, host.Host) (providers.ProviderStore, error)) Option + func ProvidersFinder(f hproviders.ProvidersFinder) Option + func ReframeAddr(addr string) Option + func RoutingTable(rt *kbucket.RoutingTable) Option + type Options struct + Addrs []multiaddr.Multiaddr + BootstrapPeers []multiaddr.Multiaddr + BucketSize int + Datastore ds.Batching + DelegateHTTPClient *http.Client + DisableProvCounts bool + DisableProvGC bool + DisableProviders bool + DisableValues bool + EnableRelay bool + ID crypto.PrivKey + Limiter chan struct{} + Peerstore peerstore.Peerstore + ProtocolPrefix protocol.ID + ProviderStoreBuilder ProviderStoreBuilderFunc + ProvidersFinder hproviders.ProvidersFinder + ReframeAddr string + RoutingTable *kbucket.RoutingTable + func (o *Options) Apply(opts ...Option) error + type ProviderStoreBuilderFunc func(opts Options, host host.Host) (providers.ProviderStore, error)