async

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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     error
	Ctx     context.Context
	Command eh.Command
}

Error is an error containing the error and the command.

func (Error) Error

func (e Error) Error() string

Error implements the Error method of the error interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL