(ctx context.Context, topic interface{}, payload interface{})
| 5 | // Dispatcher is the event registry that is able to send payload to each listener. |
| 6 | type Dispatcher interface { |
| 7 | Dispatch(ctx context.Context, topic interface{}, payload interface{}) error |
| 8 | Subscribe(listener Listener) |
| 9 | } |
| 10 |