Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventPublisher ¶
func NewEventPublisher() *eventPublisher
Types ¶
type ChannelBackupEvent ¶
type ChannelBackupEvent struct {
Channels []ChannelBackupInfo `json:"channels"`
}
type ChannelBackupInfo ¶
type Event ¶
type Event struct { Event string `json:"event"` Properties interface{} `json:"properties,omitempty"` }
type EventPublisher ¶
type EventPublisher interface { RegisterSubscriber(eventListener EventSubscriber) RemoveSubscriber(eventListener EventSubscriber) Publish(event *Event) SetGlobalProperty(key string, value interface{}) }
type EventSubscriber ¶
type PaymentReceivedEventProperties ¶
type PaymentReceivedEventProperties struct {
PaymentHash string `json:"payment_hash"`
}
Click to show internal directories.
Click to hide internal directories.