providers

package
v4.4.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: MIT Imports: 15 Imported by: 0

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 cid.Cid, val peer.ID)

func (*ProviderManager) GetProviders

func (pm *ProviderManager) GetProviders(ctx context.Context, k cid.Cid) []peer.ID

func (*ProviderManager) Process

func (pm *ProviderManager) Process() goprocess.Process

Jump to

Keyboard shortcuts

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