Documentation ¶
Index ¶
- Variables
- type TimerBasedElectionTrigger
- func (t *TimerBasedElectionTrigger) CalcTimeout(view primitives.View) time.Duration
- func (t *TimerBasedElectionTrigger) ElectionChannel() chan *interfaces.ElectionTrigger
- func (t *TimerBasedElectionTrigger) RegisterOnElection(blockHeight primitives.BlockHeight, view primitives.View, ...)
- func (t *TimerBasedElectionTrigger) Stop()
Constants ¶
This section is empty.
Variables ¶
View Source
var TIMEOUT_EXP_BASE = 2.0
Functions ¶
This section is empty.
Types ¶
type TimerBasedElectionTrigger ¶
type TimerBasedElectionTrigger struct {
// contains filtered or unexported fields
}
func NewTimerBasedElectionTrigger ¶
func NewTimerBasedElectionTrigger(minTimeout time.Duration, callbackFromOrbs interfaces.OnElectionCallback) *TimerBasedElectionTrigger
func (*TimerBasedElectionTrigger) CalcTimeout ¶
func (t *TimerBasedElectionTrigger) CalcTimeout(view primitives.View) time.Duration
func (*TimerBasedElectionTrigger) ElectionChannel ¶
func (t *TimerBasedElectionTrigger) ElectionChannel() chan *interfaces.ElectionTrigger
func (*TimerBasedElectionTrigger) RegisterOnElection ¶
func (t *TimerBasedElectionTrigger) RegisterOnElection(blockHeight primitives.BlockHeight, view primitives.View, moveToNextLeader func(blockHeight primitives.BlockHeight, view primitives.View, willBeCalledAfterMovedToNextLeader interfaces.OnElectionCallback))
on new view
func (*TimerBasedElectionTrigger) Stop ¶
func (t *TimerBasedElectionTrigger) Stop()
Click to show internal directories.
Click to hide internal directories.