Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Observable ¶
type ObserverSet ¶
type ObserverSet map[Observer]struct{}
type SimpleObservable ¶
type SimpleObservable struct { sync.RWMutex Observers ObserverSet }
func NewSimpleObservable ¶
func NewSimpleObservable() *SimpleObservable
func (*SimpleObservable) AddObserver ¶
func (o *SimpleObservable) AddObserver(observer Observer)
func (*SimpleObservable) NotifyAll ¶
func (o *SimpleObservable) NotifyAll(event interface{})
func (*SimpleObservable) RemoveObserver ¶
func (o *SimpleObservable) RemoveObserver(observer Observer)
Click to show internal directories.
Click to hide internal directories.