Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
func NewMiddleware() (eh.CommandHandlerMiddleware, chan *Error)
NewMiddleware returns a new async handling middleware that returns any errors on a error channel.
Types ¶
type Error ¶
type Error struct {
// Err is the error that happened when handling the command.
Err error
// Ctx is the context used when the error happened.
Ctx context.Context
// Command is the command handeled when the error happened.
Command eh.Command
}
Error is an error containing the error and the command.
Click to show internal directories.
Click to hide internal directories.