internal

package
v1.1.16-0...-5f6d184 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// End consumer of published transactions. Not consumed on blockatlas
	TxNotifications mq.Queue = "txNotifications"
	// Address:coin subscriptions
	Subscriptions       mq.Queue = "subscriptions"
	SubscriptionsTokens mq.Queue = "subscriptions_tokens"

	// Transactions to process, if match subscriptions, pushed to TxNotifications
	RawTransactions         mq.Queue    = "rawTransactions"
	RawTokens               mq.Queue    = "rawTokens"
	RawTransactionsExchange mq.Exchange = "raw_transactions"
)

Variables

View Source
var (
	Build = "dev"
	Date  = time.Now().String()
)

Functions

func InitConfig

func InitConfig(confPath string)

func InitEngine

func InitEngine(ginMode string) *gin.Engine

func InitMQ

func InitMQ(url string)

func ParseArgs

func ParseArgs(defaultPort, defaultConfigPath string) (string, string)

Types

type ConsumerDatabase

type ConsumerDatabase struct {
	Database *db.Instance
	Delivery func(*db.Instance, amqp.Delivery) error
	Tag      string
}

func (ConsumerDatabase) Callback

func (c ConsumerDatabase) Callback(msg amqp.Delivery) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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