mqImpl

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

description: sync_eth

@author: xwc1125 @date: 2020/10/05

description: sync_eth

@author: xwc1125 @date: 2020/10/05

Index

Constants

View Source
const (
	MqTxNotifyEx       = "tx.notify.ex"
	MqTxNotifyQueue    = "tx.notify.queue"
	MqTxNotifyRouteKey = "tx.notify.routekey"
)
View Source
const (
	MqTxRawEx       = "tx.raw.ex"
	MqTxRawQueue    = "tx.raw.queue"
	MqTxRawRouteKey = "tx.raw.routekey"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifyInfo

type NotifyInfo struct {
	ChainName string
	ChainType int64
	Tx        *models.Transaction
}

type TransactionNotifyMq

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

func NewTxNotifyMq

func NewTxNotifyMq(w *mq.Wrapper) *TransactionNotifyMq

func (*TransactionNotifyMq) Produce

func (m *TransactionNotifyMq) Produce(tx *models.Transaction) error

type TransactionRawMq

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

func NewTxRawMq

func NewTxRawMq(w *mq.Wrapper, es *es.ES) *TransactionRawMq

func (*TransactionRawMq) Consumer

func (m *TransactionRawMq) Consumer()

func (*TransactionRawMq) Produce

func (m *TransactionRawMq) Produce(tx *models.Transaction) error

Jump to

Keyboard shortcuts

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