Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler[TParams any, TResponse any] interface { Handle(context.Context, TParams) (TResponse, *i18np.Error) }
Handler is the interface that must be implemented by a command or query handler It is used to execute a command or query The first parameter is the context The second parameter is the command or query The return value is the response and an error The error is an i18np.Error The error is nil if the command or query is executed successfully The error is not nil if the command or query is not executed successfully
Click to show internal directories.
Click to hide internal directories.