Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHub ¶
type EventHub struct {
// contains filtered or unexported fields
}
func NewEventHub ¶
func (*EventHub) Dispatch ¶
Dispatch continually drains eh.inputConnection (events from cardinal) and sends copies to all subscribed channels. This function is meant to be called in a goroutine.
func (*EventHub) SubscribeToEvents ¶
func (*EventHub) SubscribeToReceipts ¶
func (*EventHub) Unsubscribe ¶
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier is a struct that sends out notifications to users based on transaction receipts.
func NewNotifier ¶
func (*Notifier) AddTxHashToPendingNotifications ¶
AddTxHashToPendingNotifications adds the given user ID and tx hash to pending notifications. When this system becomes aware of a transaction receipt with the given tx hash, the given user will be sent a notification with any results and errors. This method is safe for concurrent access.
type TickResults ¶
Click to show internal directories.
Click to hide internal directories.