Documentation ¶
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)
Click to show internal directories.
Click to hide internal directories.