Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextCanceledOrUnexpected ¶ added in v1.7.2
ContextCanceledOrUnexpected is used in errgroup.Go functions to ensure that an error is returned when a "Runner" function ended unexpectedly. Returns: - if ctx.Err() != nil -> ctx.Err() - if err != nil -> wrap(err, "component returned an unexpected error") - otherwise -> "component ended unexpectedly"
func IsStreamClosed ¶
IsStreamClosed returns true when the error indicates a normal closing of a GRPC stream.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.