events

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitBlockEvent

type CommitBlockEvent struct {
	Hash common.Hash
}

type EventSystem

type EventSystem struct {
	// contains filtered or unexported fields
}

func GetEventSystem

func GetEventSystem() *EventSystem

func NewEventSystem

func NewEventSystem() *EventSystem

func (*EventSystem) SendCommitBlockEvent

func (es *EventSystem) SendCommitBlockEvent(e CommitBlockEvent) int

SendCommitBlockEvent: once we receive a commitBlockEvent, we should

func (*EventSystem) Stop

func (es *EventSystem) Stop()

func (*EventSystem) SubscribeCommitBlockEvent

func (es *EventSystem) SubscribeCommitBlockEvent(ch chan<- CommitBlockEvent) event.Subscription

Jump to

Keyboard shortcuts

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