Versions in this module Expand all Collapse all v0 v0.9.1 Oct 18, 2024 v0.9.0 Sep 8, 2024 Changes in this version + type Command interface + Execute func(ctx context.Context, dto any) (any, error) + type CommandEvent struct + func NewCommandEvent() *CommandEvent + func (c *CommandEvent) Dispatch(ctx context.Context, dto ObjectIn, out any) error + func (c *CommandEvent) DispatchAsync(ctx context.Context, dto any) <-chan Envelope + func (c *CommandEvent) Register(dto ObjectIn, handler Command) + type Envelope struct + Error error + Result any + type MockCommand struct + func NewMockCommand(ctrl *gomock.Controller) *MockCommand + func (m *MockCommand) EXPECT() *MockCommandMockRecorder + func (m *MockCommand) Execute(ctx context.Context, dto any) (any, error) + type MockCommandMockRecorder struct + func (mr *MockCommandMockRecorder) Invoke(ctx, dto any) *gomock.Call + type ObjectIn any