package
0.0.0-20241124113528-0de0edb5b16b
Repository: https://github.com/kykypy3/clean.git
Documentation: pkg.go.dev

# Functions

NewCommandBus creates a new instance of CommandBus.
NewQueryBus creates a new instance of QueryBus.

# Variables

ErrCommandHandlerNotFound represents the "command handler not found" error.
ErrQueryHandlerNotFound represents the "query handler not found" error.
ErrUnexpectedCommand represents the "unexpected command" error.
ErrUnexpectedQuery represents the "unexpected query" error.

# Structs

CommandBus represents the command bus.
QueryBus represents the query bus.

# Interfaces

Command represents the interface for commands.
CommandHandler represents the interface for a command handler.
Query represents the interface for queries.
QueryHandler represents the interface for a query handler.

# Type aliases

CommandType represents the type of a command.
QueryType represents the type of a query.