events

package
v0.26.6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: LGPL-3.0 Imports: 5 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")
)

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

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