Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProvideValidity = time.Hour * 24
Functions ¶
This section is empty.
Types ¶
type ProviderManager ¶
type ProviderManager struct {
// contains filtered or unexported fields
}
func NewProviderManager ¶
func NewProviderManager(ctx context.Context, local peer.ID, dstore ds.Batching) *ProviderManager
func (*ProviderManager) AddProvider ¶
func (pm *ProviderManager) AddProvider(ctx context.Context, k key.Key, val peer.ID)
func (*ProviderManager) GetProviders ¶
func (pm *ProviderManager) GetProviders(ctx context.Context, k key.Key) []peer.ID
Click to show internal directories.
Click to hide internal directories.