errors

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTooManyErrs = errors.New("too many errors")

ErrTooManyErrs indicates when too many errors have occurred.

Functions

func MaybePanic

func MaybePanic(err error)

MaybePanic panics if the argument is not nil. It is useful for wrapping error-only return functions known to only return nil values.

func MonitorRunningErrors

func MonitorRunningErrors(
	errs chan error, fatal chan error, queueSize int, maxRunningErrRate float32, logger *zap.Logger,
)

MonitorRunningErrors reads (possibly nil) errors from errs and sends an error to fatal if the running non-nil error rate gets above maxRunningErrRate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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