Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEventPublisher ¶
func NewEventPublisher() *eventPublisher
Types ¶
type ChannelBackup ¶ added in v1.10.0
type EncodedChannelMonitorBackup ¶ added in v1.10.0
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) PublishSync(event *Event) SetGlobalProperty(key string, value interface{}) }
type EventSubscriber ¶
type StaticChannelsBackupEvent ¶ added in v1.10.0
type StaticChannelsBackupEvent struct { NodeID string `json:"node_id"` Channels []ChannelBackup `json:"channels"` Monitors []EncodedChannelMonitorBackup `json:"monitors"` }
Click to show internal directories.
Click to hide internal directories.