subscriptions

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: LGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Folder = "subscriptions"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(datadir string) (*Manager, error)

func (*Manager) RawSubscriptions

func (m *Manager) RawSubscriptions() [][]byte

func (*Manager) Subscribe

func (m *Manager) Subscribe(contract common.Address, event string) error

func (*Manager) Subscriptions

func (m *Manager) Subscriptions() []*Subscription

func (*Manager) Unsubscribe

func (m *Manager) Unsubscribe(contract common.Address, event string) error

type Subscription

type Subscription struct {
	Contract common.Address `json:"contract"`
	Event    string         `json:"event"`
}

Jump to

Keyboard shortcuts

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