events

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: LGPL-3.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

View Source
const (
	NewTxEventID           = eventbus.EventID("transaction-new")
	AddBlockEventID        = eventbus.EventID("block-add")
	NewFlipKeyID           = eventbus.EventID("flip-key-new")
	FastSyncCompleted      = eventbus.EventID("fast-sync-completed")
	NewFlipEventID         = eventbus.EventID("flip-new")
	NewFlipKeysPackageID   = eventbus.EventID("flip-keys-package-new")
	IpfsPortChangedEventId = eventbus.EventID("ipfs-port-changed")
	DeleteFlipEventID      = eventbus.EventID("flip-delete")
	PeersEventID           = eventbus.EventID("peers")
	BlockchainResetEventID = eventbus.EventID("chain-reset")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockchainResetEvent added in v0.27.0

type BlockchainResetEvent struct {
	Header      *types.Header
	RevertedTxs []*types.Transaction
}

func (*BlockchainResetEvent) EventID added in v0.27.0

func (e *BlockchainResetEvent) EventID() eventbus.EventID

type DeleteFlipEvent

type DeleteFlipEvent struct {
	FlipCid []byte
}

func (DeleteFlipEvent) EventID

func (DeleteFlipEvent) EventID() eventbus.EventID

type FastSyncCompletedEvent

type FastSyncCompletedEvent struct {
}

func (FastSyncCompletedEvent) EventID

type IpfsPortChangedEvent

type IpfsPortChangedEvent struct {
	Host   core.Host
	PubSub *pubsub.PubSub
}

func (IpfsPortChangedEvent) EventID

type NewBlockEvent

type NewBlockEvent struct {
	Block *types.Block
}

func (*NewBlockEvent) EventID

func (e *NewBlockEvent) EventID() eventbus.EventID

type NewFlipEvent

type NewFlipEvent struct {
	Flip *types.Flip
}

func (NewFlipEvent) EventID

func (NewFlipEvent) EventID() eventbus.EventID

type NewFlipKeyEvent

type NewFlipKeyEvent struct {
	Key     *types.PublicFlipKey
	ShardId common.ShardId
	Own     bool
}

func (*NewFlipKeyEvent) EventID

func (e *NewFlipKeyEvent) EventID() eventbus.EventID

type NewFlipKeysPackageEvent

type NewFlipKeysPackageEvent struct {
	Key     *types.PrivateFlipKeysPackage
	ShardId common.ShardId
	Own     bool
}

func (*NewFlipKeysPackageEvent) EventID

type NewTxEvent

type NewTxEvent struct {
	Tx       *types.Transaction
	Own      bool
	ShardId  common.ShardId
	Deferred bool
}

func (*NewTxEvent) EventID

func (e *NewTxEvent) EventID() eventbus.EventID

type PeersEvent added in v0.26.6

type PeersEvent struct {
	PeersData []iface.ConnectionInfo
	Time      time.Time
}

func (*PeersEvent) EventID added in v0.26.6

func (e *PeersEvent) EventID() eventbus.EventID

Jump to

Keyboard shortcuts

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