temperror

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MPL-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTempError added in v0.1.1

func IsTempError(err error) bool

IsTempError returns whether it is a temporary error to avoid having to use it as it is in the gRPC source code, e.g.:

if ne, ok := err.(interface{ Temporary() bool }); !ok || !ne.Temporary() {

This function does that for you :-)

func New

func New(inner error) tempError

New creates a "temporary" error wrapping the given error

Types

This section is empty.

Jump to

Keyboard shortcuts

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