Discover Packages
github.com/aezhar/ebus
package
module
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
ebus
The package ebus
for Go provides a generic and type-safe event bus for publishing and subscribing to events within a single process without any guarantees to durability or delivery.
Expand ▾
Collapse ▴
Documentation
¶
Emit sends the given event to all subscribers of the given event type.
Event is a message on the Bus identified by an EventType value.
StopFn is called to stop receiving any further events.
On subscribes a given handler to a given event type on the given bus.
SubscribeTo subscribes to an event with the specified event type.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.