| 40 | } |
| 41 | |
| 42 | type bus struct { |
| 43 | subscriptions map[*bus]bool |
| 44 | |
| 45 | evbuf []Event |
| 46 | |
| 47 | eventch chan Event |
| 48 | parentch chan *bus |
| 49 | |
| 50 | pubch chan Event |
| 51 | subch chan chan<- Subscriber |
| 52 | unsubch chan *bus |
| 53 | |
| 54 | lc lifecycle.Lifecycle |
| 55 | } |
| 56 | |
| 57 | // NewBus runs a new bus and returns bus details |
| 58 | func NewBus() Bus { |
nothing calls this directly
no outgoing calls
no test coverage detected