package
1.14.0
Repository: https://github.com/jacobkranz/grpc-go.git
Documentation: pkg.go.dev

# Functions

Code returns the Code of the error if it is a Status error, codes.OK if err is nil, or codes.Unknown otherwise.
Convert is a convenience function which removes the need to handle the boolean return value from FromError.
Error returns an error representing c and msg.
Errorf returns Error(c, fmt.Sprintf(format, a...)).
ErrorProto returns an error representing s.
FromContextError converts a context error into a Status.
FromError returns a Status representing err if it was produced from this package or has a method `GRPCStatus() *Status`.
FromProto returns a Status representing s.
New returns a Status representing c and msg.
Newf returns New(c, fmt.Sprintf(format, a...)).

# Structs

Status represents an RPC status code, message, and details.