Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandBus ¶
type CommandBus interface { Dispatch(ctx *gin.Context, cmd Command) (Response, errors.App) RegisterCommand(t Type, h Handler) RegisterMiddleware(m Middleware) }
Bus defines the expected behaviour from a command bus.
type Middleware ¶
type Middleware func(next HandlerFunc) HandlerFunc
Click to show internal directories.
Click to hide internal directories.