Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Reject ¶
Reject builds a rejection carrying a client-safe code+message and a server-side detail for logging.
Return the result unwrapped. gRPC reads GRPCStatus verbatim only for an error it can type-assert directly; for a wrapped one it keeps the code but replaces the message with err.Error(), which is the detail. Adding context with %w therefore sends the caller exactly what this type withholds, so put the context in the detail instead.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.