zmq

package
v0.0.0-...-862ce61 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZMQ

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

ZMQ type to hold configuration details

func New

func New(c *config.Coin, doneChan chan struct{}, errChan chan error) *ZMQ

New returns a ZMQ object configured for a specific coin

func (*ZMQ) Connect

func (z *ZMQ) Connect() error

Connect will create a new ZMQ socket, connect to the endpoint and subscribe to the desired topics

func (*ZMQ) Start

func (z *ZMQ) Start(blockHashChan chan<- interface{}, mempoolTxChan chan<- *utxo.MempoolTx, signalMempoolChan chan struct{})

Start kicks off the listener and will monitor the traffic and ingest

Jump to

Keyboard shortcuts

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