tx_collector

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: LGPL-3.0 Imports: 7 Imported by: 1

Documentation

Overview

Package tx_collector contains the implementation of tx collector for packer.

Package tx_collector contains the implementation of tx collector for packer.

Package tx_collector contains the implementation of tx collector for packer.

Index

Constants

View Source
const (
	TxMsg        = 0x00
	TxConfirmMsg = 0x01
)

tx collect message codes

Variables

This section is empty.

Functions

func WriteMsg

func WriteMsg(fd net.Conn, msg *Msg) error

Types

type Msg

type Msg struct {
	Code    uint64
	Size    uint64
	Payload io.Reader
}

func ReadMsg

func ReadMsg(fd net.Conn) (msg Msg, err error)

type TxCollector

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

func NewTxCollector

func NewTxCollector(listenAddr string) *TxCollector

func (*TxCollector) Start

func (s *TxCollector) Start(txChan chan types.Transactions) error

func (*TxCollector) Stop

func (s *TxCollector) Stop()

type TxSender

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

func NewTxSender

func NewTxSender(srvAddr string) *TxSender

func (*TxSender) Connect

func (s *TxSender) Connect() error

func (*TxSender) SendTx

func (s *TxSender) SendTx(tx *types.Transaction) error

Jump to

Keyboard shortcuts

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