Documentation
¶
Index ¶
- func Dispatch[Q ObjectIn](ctx context.Context, dto Q) error
- func DispatchAsync[Q ObjectIn](ctx context.Context, dto Q) <-chan error
- func DispatchResult[Q ObjectIn, T ObjectOut](ctx context.Context, dto Q) (T, error)
- func DispatchResultAsync[Q ObjectIn, T ObjectOut](ctx context.Context, dto Q) <-chan Envelope[T]
- func InitCommand()
- func InitResultCommand()
- func Register[Q ObjectIn](handler CommandExecutor[Q])
- func RegisterResult[Q ObjectIn, T ObjectOut](handler ResultCommandExecutor[Q, T])
- type CommandExecutor
- type Envelope
- type ObjectIn
- type ObjectOut
- type ResultCommandExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DispatchResult ¶
func DispatchResultAsync ¶
func InitCommand ¶
func InitCommand()
func InitResultCommand ¶
func InitResultCommand()
func Register ¶
func Register[Q ObjectIn](handler CommandExecutor[Q])
func RegisterResult ¶
func RegisterResult[Q ObjectIn, T ObjectOut](handler ResultCommandExecutor[Q, T])
Types ¶
type CommandExecutor ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
example/cmd
command
|
|
|
mocks
Package mocksgobus is a generated GoMock package.
|
Package mocksgobus is a generated GoMock package. |
|
performance/buscontract
Package bus is a generated GoMock package.
|
Package bus is a generated GoMock package. |
|
performance/busevent
Package busevent is a generated GoMock package.
|
Package busevent is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.