Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHandlerNotFound = errors.New("handler not found")
ErrHandlerNotFound defines an error if a handler is not found.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus interface { Publish(ctx context.Context, msg Msg) error AddEventListener(handler HandlerFunc) }
Bus type defines the bus interface structure.
type InProcBus ¶
type InProcBus struct {
// contains filtered or unexported fields
}
InProcBus defines the bus structure.
func ProvideBus ¶
func (*InProcBus) AddEventListener ¶
func (b *InProcBus) AddEventListener(handler HandlerFunc)
Click to show internal directories.
Click to hide internal directories.