Documentation ¶
Index ¶
Constants ¶
const ErrNonErrorPanic = "panic: %v"
ErrNonErrorPanic is used to format a recover result that does not support the standard error interface
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler is a partial actor.Actor that can be composed with others
func All ¶
All is a Handler composition that will only return true if all of its constituent Handlers returns true
func And ¶
And constructs a Handler that performs the left Handler, and if it returns true will return the result of performing the right Handler
func Any ¶
Any is a Handler composition that will return true the first time any of its constituent Handlers returns true
func Or ¶
Or constructs a Handler that performs the left Handler, and if it returns false will return the result of performing the right Handler
func Panic ¶
Panic wraps a Handler and will catch any panic value that is recovered in executing that Handler. These will be reported as a report.Error
func UnhandledMessage ¶
UnhandledMessage wraps a Handler and will report a report.DeadLetter if that Handler returns false