Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callback ¶
type Callback interface {
Notify(o *Observable)
}
type Observable ¶
type Observable struct {
Name string
}
type Observer ¶
type Observer struct { }
func (*Observer) Notify ¶
func (ob *Observer) Notify(o *Observable)
type Subject ¶
type Subject struct {
// contains filtered or unexported fields
}
func (*Subject) AddObserver ¶
func (*Subject) DeleteObserver ¶
func (*Subject) NotifyObservers ¶
func (o *Subject) NotifyObservers(oes ...Observable)
Click to show internal directories.
Click to hide internal directories.