Documentation
¶
Overview ¶
Package errors provides gRPC-specific error helpers for go-service.
This package contains small helpers for classifying and normalizing gRPC-related errors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServerError ¶
ServerError normalizes expected gRPC server shutdown errors.
gRPC returns grpc.ErrServerStopped when (*grpc.Server).Serve is called after Stop or GracefulStop. That order can occur during normal asynchronous lifecycle shutdown, so it is not considered a serve failure.
ServerError returns nil when err is grpc.ErrServerStopped, otherwise it returns err unchanged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.