Documentation ¶
Index ¶
- Constants
- type BlockEvent
- func NewBlockEvent(eventType api.BlockchainEvent_Type, blockHash string, parentHash string, ...) *BlockEvent
- func NewBlockEventFromEventEntry(eventType api.BlockchainEvent_Type, entry *EventEntry) *BlockEvent
- func NewBlockEventWithBlockMeta(eventType api.BlockchainEvent_Type, block *api.BlockMetadata) *BlockEvent
- type EventEntry
- type Transaction
Constants ¶
View Source
const ( DefaultBlockTag = uint32(1) EventIdStartValue = int64(1) EventIdDeleted = int64(0) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockEvent ¶
type BlockEvent struct { EventType api.BlockchainEvent_Type BlockHash string BlockHeight uint64 ParentHash string Tag uint32 Skipped bool BlockTimestamp int64 }
func NewBlockEvent ¶
func NewBlockEvent(eventType api.BlockchainEvent_Type, blockHash string, parentHash string, blockHeight uint64, tag uint32, skipped bool, blockTimestamp int64) *BlockEvent
func NewBlockEventFromEventEntry ¶
func NewBlockEventFromEventEntry(eventType api.BlockchainEvent_Type, entry *EventEntry) *BlockEvent
func NewBlockEventWithBlockMeta ¶
func NewBlockEventWithBlockMeta(eventType api.BlockchainEvent_Type, block *api.BlockMetadata) *BlockEvent
func (*BlockEvent) GetBlockHeight ¶
func (e *BlockEvent) GetBlockHeight() uint64
func (*BlockEvent) GetBlockSkipped ¶
func (e *BlockEvent) GetBlockSkipped() bool
func (*BlockEvent) GetBlockTimestamp ¶
func (e *BlockEvent) GetBlockTimestamp() int64
type EventEntry ¶
type EventEntry struct { EventId int64 EventType api.BlockchainEvent_Type BlockHeight uint64 BlockHash string Tag uint32 ParentHash string MaxEventId int64 BlockSkipped bool EventTag uint32 BlockTimestamp int64 }
func CastItemToEventEntry ¶
func CastItemToEventEntry(outputItem any) (*EventEntry, bool)
func ConvertBlockEventsToEventEntries ¶
func ConvertBlockEventsToEventEntries(blockEvents []*BlockEvent, eventTag uint32, eventId int64) []*EventEntry
func NewEventEntry ¶
func NewEventEntry(eventTag uint32, eventId int64, inputEvent *BlockEvent) *EventEntry
Click to show internal directories.
Click to hide internal directories.