events

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: LGPL-3.0 Imports: 3 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")
)

Variables

This section is empty.

Functions

This section is empty.

Types

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
}

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
	Own bool
}

func (*NewFlipKeyEvent) EventID

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

type NewFlipKeysPackageEvent

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

func (*NewFlipKeysPackageEvent) EventID

type NewTxEvent

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

func (*NewTxEvent) EventID

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

Jump to

Keyboard shortcuts

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