wapp

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunWithFatalLogging

func RunWithFatalLogging(ctx context.Context, runFn func(ctx context.Context) error) (retErr error)

RunWithFatalLogging wraps a callback, logging errors and panics it returns. Useful as a "catch all" for applications so that they can log fatal events, perhaps before exiting.

func RunWithRecoveryLogging added in v1.3.5

func RunWithRecoveryLogging(ctx context.Context, runFn func(ctx context.Context))

RunWithRecoveryLogging wraps a callback, logging any panics recovered as errors. Useful as a "catch all" for applications so that they can log fatal events, perhaps before exiting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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