internal

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 14 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 InitClient added in v1.1.15

func InitClient(url string) client.Request

func InitConfig

func InitConfig(confPath string)

func InitEngine

func InitEngine(ginMode string) *gin.Engine

func InitJSONClient added in v1.1.15

func InitJSONClient(baseUrl string) client.Request

func InitMQ added in v1.1.15

func InitMQ(url string)

func ParseArgs

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

Types

type Client added in v1.1.15

type Client struct {
	client.Request
}

type ConsumerDatabase added in v1.1.15

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

func (ConsumerDatabase) Callback added in v1.1.15

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

Jump to

Keyboard shortcuts

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