PubSub is a basic event PubSub implementation.
| 26 | |
| 27 | // PubSub is a basic event PubSub implementation. |
| 28 | type PubSub struct { |
| 29 | mu sync.RWMutex |
| 30 | subscriptions []events.Subscription |
| 31 | } |
| 32 | |
| 33 | // NewPubSub returns a new basic event PubSub. |
| 34 | func NewPubSub() *PubSub { |
nothing calls this directly
no outgoing calls
no test coverage detected