Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
func NewMiddleware() eh.CommandHandlerMiddleware
NewMiddleware returns a new middleware that validate commands with its own validation method; `Validate() error`. Commands without the validate method will not be validated.
Types ¶
type Command ¶
type Command interface { eh.Command // Validate returns the error when validating the command. Validate() error }
Command is a command with its own validation method.
Click to show internal directories.
Click to hide internal directories.