internal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2016 License: MIT Imports: 7 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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