package
1.51.4
Repository: https://github.com/lfch/grpc.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 or wrapped context error into a Status.
FromError returns a Status representation of err.
FromProto returns a Status representing s.
New returns a Status representing c and msg.
Newf returns New(c, fmt.Sprintf(format, a...)).

# Type aliases

Status references google.golang.org/grpc/internal/status.