notifier

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const DefaultPushNotificationsBatchLimit = 50

Variables

View Source
var MaxPushNotificationsBatchLimit uint = DefaultPushNotificationsBatchLimit

Functions

func GetTransactionsFromDelivery

func GetTransactionsFromDelivery(delivery amqp.Delivery, ctx context.Context) (blockatlas.Txs, error)

func RunNotifier

func RunNotifier(database *db.Instance, delivery amqp.Delivery)

func ToUniqueAddresses

func ToUniqueAddresses(addresses []string) []string

Types

type TransactionNotification

type TransactionNotification struct {
	Action blockatlas.TransactionType `json:"action"`
	Result blockatlas.Tx              `json:"result"`
}

Jump to

Keyboard shortcuts

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