Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidInput = fmt.Errorf("invalid input") )
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler sends a response when a message is required to have a response, but was not handled by the next handler in the chain.
func New ¶
New creates a new instance of the Handler struct. The parameter next is the handler that will be called and monitored for errors. The parameter egress is the handler that will be called to send the response if/when the next handler fails to handle the message. The parameter source is the source to use in the response message. The list of partners is the list of allowed partners.
Click to show internal directories.
Click to hide internal directories.