Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SafelyCallOnewayHandler ¶ added in v0.4.0
func SafelyCallOnewayHandler( ctx context.Context, h transport.OnewayHandler, req *transport.Request, ) (err error)
SafelyCallOnewayHandler calls the handler h, recovering panics.
func SafelyCallUnaryHandler ¶ added in v0.4.0
func SafelyCallUnaryHandler( ctx context.Context, h transport.UnaryHandler, start time.Time, req *transport.Request, resq transport.ResponseWriter, ) (err error)
SafelyCallUnaryHandler calls the handler h, recovering panics and timeout errors, converting them to yarpc errors. All other errors are passed trough.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.