Documentation ¶
Index ¶
- type BaseEvent
- func (e *BaseEvent) Creator() idx.ValidatorID
- func (e *BaseEvent) Epoch() idx.Epoch
- func (e *BaseEvent) Frame() idx.Frame
- func (e *BaseEvent) ID() hash.Event
- func (e *BaseEvent) IsSelfParent(hash hash.Event) bool
- func (e *BaseEvent) Lamport() idx.Lamport
- func (e *BaseEvent) Parents() hash.Events
- func (e *BaseEvent) SelfParent() *hash.Event
- func (e *BaseEvent) Seq() idx.Event
- func (e *BaseEvent) Size() int
- func (e *BaseEvent) String() string
- type Event
- type Events
- type Metric
- type MutableBaseEvent
- func (me *MutableBaseEvent) Build(rID [24]byte) *BaseEvent
- func (e *MutableBaseEvent) SetCreator(v idx.ValidatorID)
- func (e *MutableBaseEvent) SetEpoch(v idx.Epoch)
- func (e *MutableBaseEvent) SetFrame(v idx.Frame)
- func (e *MutableBaseEvent) SetID(rID [24]byte)
- func (e *MutableBaseEvent) SetLamport(v idx.Lamport)
- func (e *MutableBaseEvent) SetParents(v hash.Events)
- func (e *MutableBaseEvent) SetSeq(v idx.Event)
- type MutableEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEvent ¶
type BaseEvent struct {
// contains filtered or unexported fields
}
BaseEvent is the consensus message in the Sirius consensus algorithm The structure isn't supposed to be used as-is: Doesn't contain payload, it should be extended by an app Doesn't contain event signature, it should be extended by an app
func (*BaseEvent) Creator ¶
func (e *BaseEvent) Creator() idx.ValidatorID
func (*BaseEvent) IsSelfParent ¶
IsSelfParent is true if specified ID is event's self-parent
func (*BaseEvent) SelfParent ¶
SelfParent returns event's self-parent, if any
type MutableBaseEvent ¶
type MutableBaseEvent struct {
BaseEvent
}
func (*MutableBaseEvent) Build ¶
func (me *MutableBaseEvent) Build(rID [24]byte) *BaseEvent
Build build immutable event
func (*MutableBaseEvent) SetCreator ¶
func (e *MutableBaseEvent) SetCreator(v idx.ValidatorID)
func (*MutableBaseEvent) SetEpoch ¶
func (e *MutableBaseEvent) SetEpoch(v idx.Epoch)
func (*MutableBaseEvent) SetFrame ¶
func (e *MutableBaseEvent) SetFrame(v idx.Frame)
func (*MutableBaseEvent) SetID ¶
func (e *MutableBaseEvent) SetID(rID [24]byte)
func (*MutableBaseEvent) SetLamport ¶
func (e *MutableBaseEvent) SetLamport(v idx.Lamport)
func (*MutableBaseEvent) SetParents ¶
func (e *MutableBaseEvent) SetParents(v hash.Events)
func (*MutableBaseEvent) SetSeq ¶
func (e *MutableBaseEvent) SetSeq(v idx.Event)
Click to show internal directories.
Click to hide internal directories.