republisher

package
v0.0.0-...-9ab2669 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

此源码被清华学神尹成大魔王专业翻译分析并修改 尹成QQ77025077 尹成微信18510341407 尹成所在QQ群721929980 尹成邮箱 yinc13@mails.tsinghua.edu.cn 尹成毕业于清华大学,微软区块链领域全球最有价值专家 https://mvp.microsoft.com/zh-cn/PublicProfile/4033620

Index

Constants

View Source
const DefaultRecordLifetime = time.Hour * 24

DefaultRecordLifetime是IPN记录的默认生存期

Variables

View Source
var DefaultRebroadcastInterval = time.Hour * 4

默认重新广播间隔是我们重新广播IPN记录的默认间隔

View Source
var FailureRetryInterval = time.Minute * 5

failureRetryInterval是我们重试IPN记录广播的间隔(当它们失败时)

View Source
var InitialRebroadcastDelay = time.Minute * 1

initialRebroadcastDelay是在启动时首次广播IPN记录之前的延迟

Functions

This section is empty.

Types

type Republisher

type Republisher struct {
	Interval time.Duration

	//重新发布的记录应在多长时间内有效
	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

新建重新发布服务器创建新的重新发布服务器

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