broker

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: CC0-1.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	SubscribeNewHeads(chan event.Block) Subscription
	SubscribeLogs(request.LogSubscriptionOptions, chan event.Logs) Subscription
	UnsubscribeFromNewHeads(Subscription)
	UnsubscribeFromLogs(Subscription)
	PublishNewHeads(event.Block)
	PublishLogs(event.Logs)
}

type SubID

type SubID string

type Subscription

type Subscription interface {
	GetId() SubID
	GetNewHeadsCh() chan event.Block
	GetLogsCh() chan event.Logs
	GetLogsSubOpts() request.LogSubscriptionOptions
}

Jump to

Keyboard shortcuts

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