Versions in this module Expand all Collapse all v0 v0.12.4 Jun 12, 2021 v0.12.3 Jun 12, 2021 Changes in this version + const ProvidersKeyPrefix + var ProvideValidity = time.Hour * 24 + type Option func(*ProviderManager) error + func Cache(c lru.LRUCache) Option + func CleanupInterval(d time.Duration) Option + type ProviderManager struct + func NewProviderManager(ctx context.Context, local peer.ID, dstore ds.Batching, opts ...Option) (*ProviderManager, error) + func (pm *ProviderManager) AddProvider(ctx context.Context, k []byte, val peer.ID) + func (pm *ProviderManager) GetProviders(ctx context.Context, k []byte) []peer.ID + func (pm *ProviderManager) Process() goprocess.Process