Documentation ¶
Overview ¶
Package republisher provides a utility to automatically re-publish IPNS records related to the keys in a Keystore.
Index ¶
Constants ¶
View Source
const ( // DefaultRebroadcastInterval is the default interval at which we rebroadcast IPNS records DefaultRebroadcastInterval = time.Hour * 4 // InitialRebroadcastDelay is the delay before first broadcasting IPNS records on start InitialRebroadcastDelay = time.Minute * 1 // FailureRetryInterval is the interval at which we retry IPNS records broadcasts (when they fail) FailureRetryInterval = time.Minute * 5 // DefaultRecordLifetime is the default lifetime for IPNS records DefaultRecordLifetime = ipns.DefaultRecordLifetime )
Variables ¶
This section is empty.
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 }
Republisher facilitates the regular publishing of all the IPNS records associated to keys in a keystore.Keystore.
func NewRepublisher ¶
func NewRepublisher(ns namesys.Publisher, ds ds.Datastore, self ic.PrivKey, ks keystore.Keystore) *Republisher
NewRepublisher creates a new Republisher from the given options.
func (*Republisher) Run ¶
func (rp *Republisher) Run(proc goprocess.Process)
Run starts the republisher facility. It can be stopped by stopping the provided proc.
Click to show internal directories.
Click to hide internal directories.