subscribers

package
v0.0.0-...-34de315 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: AGPL-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 Header struct {
	// contains filtered or unexported fields
}

Header event

type Manager

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

Manager represents a manager for event notifications.

func NewManager

func NewManager(buffer uint, timeout time.Duration) *Manager

NewManager creates a new event manager.

func (*Manager) Header

func (mgr *Manager) Header(hash types.Hash) error

Header triggers a new header event.

func (*Manager) Subscribe

func (mgr *Manager) Subscribe(sub chan<- interface{}, filters ...func(interface{}) bool)

Subscribe adds a subscriber to the event output.

func (*Manager) Transaction

func (mgr *Manager) Transaction(hash types.Hash) error

Transaction creates a new transaction event.

func (*Manager) Unsubscribe

func (mgr *Manager) Unsubscribe(sub chan<- interface{})

Unsubscribe removes a subscriber from the event output.

type Transaction

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

Transaction event

Jump to

Keyboard shortcuts

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