Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Hub ¶
type ID2ObserverFuncMap ¶
type ID2ObserverFuncMap map[string]ObserverFunc
type ID2ObserverMap ¶
type ID2ObserverMap map[string]ObserverList
type ObserverFunc ¶
type ObserverList ¶
type ObserverList []Observer
type SimpleObserver ¶
type SimpleObserver interface { Observer Subscribe(eventID string, observerFunc ObserverFunc) Unsubscribe(eventID string) }
func NewSimpleObserver ¶
func NewSimpleObserver(id string, hub Hub) SimpleObserver
Click to show internal directories.
Click to hide internal directories.