republisher

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 17 Imported by: 4

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 DefaultRecordLifetime = time.Hour * 24

DefaultRecordLifetime is the default lifetime for IPNS records

Deprecated: use github.com/ipfs/boxo/namesys/republisher.DefaultRecordLifetime

Variables

View Source
var DefaultRebroadcastInterval = time.Hour * 4

DefaultRebroadcastInterval is the default interval at which we rebroadcast IPNS records

Deprecated: use github.com/ipfs/boxo/namesys/republisher.DefaultRebroadcastInterval

View Source
var FailureRetryInterval = time.Minute * 5

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

Deprecated: use github.com/ipfs/boxo/namesys/republisher.FailureRetryInterval

View Source
var InitialRebroadcastDelay = time.Minute * 1

InitialRebroadcastDelay is the delay before first broadcasting IPNS records on start

Deprecated: use github.com/ipfs/boxo/namesys/republisher.InitialRebroadcastDelay

Functions

This section is empty.

Types

type Republisher deprecated

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.

Deprecated: use github.com/ipfs/boxo/namesys/republisher.Republisher

func NewRepublisher deprecated

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

NewRepublisher creates a new Republisher

Deprecated: use github.com/ipfs/boxo/namesys/republisher.NewRepublisher

func (*Republisher) Run

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

Run starts the republisher facility. It can be stopped by stopping the provided proc.

Jump to

Keyboard shortcuts

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