package
Version:
v0.0.0-...-040c84b
Opens a new window with list of versions in this module.
Published: Jul 7, 2017
License: AGPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Event struct {
Name string
EntityID string
Payload interface{}
}
Event holds data on system and domain events
Evented embeddedable interface that implements observer
Emit queues an event for notification.
Notify flushes and sends notifications.
Subscribe adds Observers to send events to
Unsubscribe removes an observer from being notified
Observer implementers will be notified when events occur
ObserverFunc function wrapper for Observer interface
On statifies Observer interface
Subject defines components that can be observered
Source Files
¶
Click to show internal directories.
Click to hide internal directories.