3 Commits

Author SHA1 Message Date
5bea19ecf1
Add error handling test cases for dispatcher
Some checks failed
Go CI/CD / go-ci (push) Has been cancelled
Introduce error-producing handlers to test command, query, and event dispatch processes. Ensure proper error propagation when handlers encounter failures. Validate that expected errors are correctly returned in all scenarios.
2025-04-13 01:19:06 -06:00
3d2e5ec027
Add Dispatcher implementation for CQRS pattern
Some checks failed
Go CI/CD / go-ci (push) Has been cancelled
Introduced a Dispatcher to manage command, query, and event handlers in a thread-safe manner utilizing read-write mutexes. This includes handler registration and dispatching logic, error handling for unregistered handlers, and support for concurrent operations. Added comprehensive tests for handler registration, dispatching, and error scenarios.
2025-04-13 00:59:18 -06:00
1cbda29b36
Initial commit 2025-04-12 22:00:42 -06:00