republisher

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultRecordLifetime = time.Hour * 24

DefaultRecordLifetime is the default lifetime for IPNS records

Variables

View Source
var DefaultRebroadcastInterval = time.Hour * 4

DefaultRebroadcastInterval is the default interval at which we rebroadcast IPNS records

View Source
var FailureRetryInterval = time.Minute * 5

FailureRetryInterval is the interval at which we retry IPNS records broadcasts (when they fail)

View Source
var InitialRebroadcastDelay = time.Minute * 1

InitialRebroadcastDelay is the delay before first broadcasting IPNS records on start

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(ns namesys.Publisher, ds ds.Datastore, self ic.PrivKey, ks keystore.Keystore) *Republisher

NewRepublisher creates a new Republisher

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