republisher

package
v0.4.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRecordLifetime = time.Hour * 24

Variables

View Source
var DefaultRebroadcastInterval = time.Hour * 4

Functions

This section is empty.

Types

type Republisher

type Republisher struct {
	Interval time.Duration

	// how long records that are republished should be valid for
	RecordLifetime time.Duration
	// contains filtered or unexported fields
}

func NewRepublisher

func NewRepublisher(r routing.ValueStore, ds ds.Datastore, ps pstore.Peerstore) *Republisher

func (*Republisher) AddName

func (rp *Republisher) AddName(id peer.ID)

func (*Republisher) Run

func (rp *Republisher) Run(proc goprocess.Process)

Jump to

Keyboard shortcuts

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