event

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OrderStatusPreOrder indicates the partial order is in pre-order status.
	OrderStatusPreOrder = iota

	// OrderStatusQuorumVerified indicates the partial order has been verified by quorum participants.
	OrderStatusQuorumVerified
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderEvent

type OrderEvent struct {
	// Status indicates the status of current partial order.
	Status int

	// Sequence indicates the assigned sequence number for current partial order.
	Sequence uint64

	// Digest indicates the identifier for current partial order.
	Digest string

	// Event contains the latest received message for current partial order.
	Event interface{}
}

OrderEvent is used to process the verification events for the partial orders from each other.

func (*OrderEvent) Less

func (event *OrderEvent) Less(item btree.Item) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL