Documentation
¶
Overview ¶
Package bus is a generated GoMock package.
Index ¶
- func Dispatch[Q objectIn, T objectOut](ctx context.Context, dto Q) (T, error)
- func DispatchAsync[Q objectIn, T objectOut](ctx context.Context, dto Q) <-chan Envelope[T]
- func Register[Q objectIn, T objectOut](q Q, handler Command[Q, T])
- type Command
- type Envelope
- type MockCommand
- type MockCommandMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DispatchAsync ¶
Types ¶
type MockCommand ¶
type MockCommand[Q objectIn, T objectOut] struct {
// contains filtered or unexported fields
}
MockCommand is a mock of Command interface.
func NewMockCommand ¶
func NewMockCommand[Q objectIn, T objectOut](ctrl *gomock.Controller) *MockCommand[Q, T]
NewMockCommand creates a new mock instance.
func (*MockCommand[Q, T]) EXPECT ¶
func (m *MockCommand[Q, T]) EXPECT() *MockCommandMockRecorder[Q, T]
EXPECT returns an object that allows the caller to indicate expected use.
type MockCommandMockRecorder ¶
type MockCommandMockRecorder[Q objectIn, T objectOut] struct {
// contains filtered or unexported fields
}
MockCommandMockRecorder is the mock recorder for MockCommand.
Click to show internal directories.
Click to hide internal directories.