Documentation ¶
Index ¶
- func Debug(a ...interface{})
- func Debugf(format string, a ...interface{})
- func Error(a ...interface{})
- func Errorf(format string, a ...interface{})
- func Fatal(a ...interface{})
- func Fatalf(format string, a ...interface{})
- func Info(a ...interface{})
- func Infof(format string, a ...interface{})
- func Init(level uint8, maxPerLogSizeMb, maxLogsSizeMb int64)
- func Warn(a ...interface{})
- func Warnf(format string, a ...interface{})
- type ConsensusEvent
- type EventListener
- type EventLogs
- func (e *EventLogs) OnConsensusFinished(cons *ConsensusEvent)
- func (e *EventLogs) OnConsensusStarted(cons *ConsensusEvent)
- func (e *EventLogs) OnProposalArrived(prop *ProposalEvent)
- func (e *EventLogs) OnProposalFinished(prop *ProposalEvent)
- func (e *EventLogs) OnViewStarted(view *ViewEvent)
- func (e *EventLogs) OnVoteArrived(vote *VoteEvent)
- type EventMonitor
- func (e *EventMonitor) OnConsensusFinished(cons *ConsensusEvent)
- func (e *EventMonitor) OnConsensusStarted(cons *ConsensusEvent)
- func (e *EventMonitor) OnProposalArrived(prop *ProposalEvent)
- func (e *EventMonitor) OnProposalFinished(prop *ProposalEvent)
- func (e *EventMonitor) OnViewStarted(view *ViewEvent)
- func (e *EventMonitor) OnVoteArrived(vote *VoteEvent)
- func (e *EventMonitor) RegisterListener(l EventListener)
- func (e *EventMonitor) UnregisterListener(l EventListener)
- type ProposalEvent
- type ViewEvent
- type VoteEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsensusEvent ¶
type EventListener ¶
type EventListener interface { OnProposalArrived(prop *ProposalEvent) OnProposalFinished(prop *ProposalEvent) OnVoteArrived(vote *VoteEvent) OnViewStarted(view *ViewEvent) OnConsensusStarted(cons *ConsensusEvent) OnConsensusFinished(cons *ConsensusEvent) }
type EventLogs ¶
type EventLogs struct { }
func (*EventLogs) OnConsensusFinished ¶
func (e *EventLogs) OnConsensusFinished(cons *ConsensusEvent)
func (*EventLogs) OnConsensusStarted ¶
func (e *EventLogs) OnConsensusStarted(cons *ConsensusEvent)
func (*EventLogs) OnProposalArrived ¶
func (e *EventLogs) OnProposalArrived(prop *ProposalEvent)
func (*EventLogs) OnProposalFinished ¶
func (e *EventLogs) OnProposalFinished(prop *ProposalEvent)
func (*EventLogs) OnViewStarted ¶
func (*EventLogs) OnVoteArrived ¶
type EventMonitor ¶
type EventMonitor struct {
// contains filtered or unexported fields
}
func NewEventMonitor ¶ added in v0.3.0
func NewEventMonitor() *EventMonitor
func (*EventMonitor) OnConsensusFinished ¶
func (e *EventMonitor) OnConsensusFinished(cons *ConsensusEvent)
func (*EventMonitor) OnConsensusStarted ¶
func (e *EventMonitor) OnConsensusStarted(cons *ConsensusEvent)
func (*EventMonitor) OnProposalArrived ¶
func (e *EventMonitor) OnProposalArrived(prop *ProposalEvent)
func (*EventMonitor) OnProposalFinished ¶
func (e *EventMonitor) OnProposalFinished(prop *ProposalEvent)
func (*EventMonitor) OnViewStarted ¶
func (e *EventMonitor) OnViewStarted(view *ViewEvent)
func (*EventMonitor) OnVoteArrived ¶
func (e *EventMonitor) OnVoteArrived(vote *VoteEvent)
func (*EventMonitor) RegisterListener ¶
func (e *EventMonitor) RegisterListener(l EventListener)
func (*EventMonitor) UnregisterListener ¶
func (e *EventMonitor) UnregisterListener(l EventListener)
type ProposalEvent ¶
Click to show internal directories.
Click to hide internal directories.