application

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationService

type NotificationService interface {
	Start() error
	Stop()
	Subscribe(subscriber Subscriber) error
	UnSubscribe(subscriber Subscriber) error
	EventReport() chan SubscriberEventReport
	ErrorReport() chan SubscriberErrorReport
}

func NewNotificationService

func NewNotificationService(
	scannerSvc scanner.Service,
) NotificationService

type Subscriber

type Subscriber struct {
	ID               SubscriberID
	BlockHeight      int
	Events           []scanner.EventType
	WalletDescriptor string
}

type SubscriberErrorReport

type SubscriberErrorReport struct {
	SubscriberID SubscriberID
	ErrorMsg     error
}

type SubscriberEventReport

type SubscriberEventReport struct {
	SubscriberID SubscriberID
	EventType    scanner.EventType
	BlockHeight  int
	Transaction  *transaction.Transaction
	BlockHash    *chainhash.Hash
}

type SubscriberID

type SubscriberID uuid.UUID

Jump to

Keyboard shortcuts

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