providers

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2016 License: MIT Imports: 16 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 key.Key, val peer.ID)

func (*ProviderManager) GetProviders

func (pm *ProviderManager) GetProviders(ctx context.Context, k key.Key) []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