go-ipfs: github.com/ipfs/go-ipfs/namesys/republisher Index | Files

package republisher

import "github.com/ipfs/go-ipfs/namesys/republisher"

Index

Package Files

repub.go

Constants

const DefaultRecordLifetime = time.Hour * 24

DefaultRecordLifetime is the default lifetime for IPNS records

Variables

var DefaultRebroadcastInterval = time.Hour * 4

DefaultRebroadcastInterval is the default interval at which we rebroadcast IPNS records

var FailureRetryInterval = time.Minute * 5

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

var InitialRebroadcastDelay = time.Minute * 1

InitialRebroadcastDelay is the delay before first broadcasting IPNS records on start

type Republisher Uses

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 Uses

func NewRepublisher(ns namesys.Publisher, ds ds.Datastore, self ic.PrivKey, ks keystore.Keystore) *Republisher

NewRepublisher creates a new Republisher

func (*Republisher) Run Uses

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

Package republisher imports 14 packages (graph) and is imported by 44 packages. Updated 2019-06-07. Refresh now. Tools for package owners.