Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus interface { // Publish is the method used to publish new events. Publish(context.Context, []Event) error // Subscribe is the method used to subscribe new event handlers. Subscribe(Type, Handler) Close() error }
Bus defines the expected behaviour from an event bus.
Click to show internal directories.
Click to hide internal directories.