(eventfunc EventFunc, value interface{})
| 87 | } |
| 88 | |
| 89 | func (e *Event) NotifySubscriber(eventfunc EventFunc, value interface{}) { |
| 90 | if eventfunc == nil { |
| 91 | return |
| 92 | } |
| 93 | |
| 94 | //invode subscriber event func |
| 95 | eventfunc(value) |
| 96 | |
| 97 | } |
| 98 | |
| 99 | //Notify all event subscribers |
| 100 | func (e *Event) NotifyAll() (errs []error) { |