publisher

package
v1.1.14-beta Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublishableMessage

type PublishableMessage[T common.BlockModel | common.TransactionModel | common.LogModel | common.TraceModel] struct {
	Data   T      `json:"data"`
	Status string `json:"status"`
}

type Publisher

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

func GetInstance

func GetInstance() *Publisher

GetInstance returns the singleton Publisher instance

func (*Publisher) Close

func (p *Publisher) Close() error

func (*Publisher) PublishBlockData

func (p *Publisher) PublishBlockData(blockData []common.BlockData) error

func (*Publisher) PublishReorg

func (p *Publisher) PublishReorg(oldData []common.BlockData, newData []common.BlockData) error

Jump to

Keyboard shortcuts

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