Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandBus ¶
type CommandBus struct {
// contains filtered or unexported fields
}
CommandBus is a command bus that handles commands with the registered CommandHandlers
func (*CommandBus) HandleCommand ¶
HandleCommand handles a command with a handler capable of handling it.
func (*CommandBus) SetHandler ¶
func (b *CommandBus) SetHandler(handler eh.CommandHandler, cmdType eh.CommandType) error
SetHandler adds a handler for a specific command.
Click to show internal directories.
Click to hide internal directories.