Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AccuseInterval int64 //accuse 间隔 单位s
)
Functions ¶
This section is empty.
Types ¶
type Accuser ¶
type Accuser struct {
// contains filtered or unexported fields
}
Accuser 发起accuse的结构体
func NewAccuser ¶
func NewAccuser(nodeInfo cluster.NodeInfo, signer *crypto.SecureSigner, pm *cluster.PeerManager) *Accuser
NewAccuser 新建一个Accuser对象并返回
func (*Accuser) OnHeatbeatFail ¶ added in v1.1.1
func (ac *Accuser) OnHeatbeatFail(msg struct{})
OnHeatbeatFail receive heatbeat from leader check fail
func (*Accuser) OnHeatbeatSuc ¶ added in v1.1.1
func (ac *Accuser) OnHeatbeatSuc(msg *pb.HeatbeatMsg)
OnHeatbeatSuc receive heatbeat from leader
func (*Accuser) OnTermChange ¶
OnTermChange term自增之后的回调处理
func (*Accuser) TriggerByBlockStore ¶
TriggerByBlockStore blockstore发起accuse
func (*Accuser) TriggerByTxStore ¶
TriggerByTxStore txstore发起accuse
Click to show internal directories.
Click to hide internal directories.