MCPcopy
hub / github.com/grpc/grpc-go / New

Function New

status/status.go:48–50  ·  view source on GitHub ↗

New returns a Status representing c and msg.

(c codes.Code, msg string)

Source from the content-addressed store, hash-verified

46
47// New returns a Status representing c and msg.
48func New(c codes.Code, msg string) *Status {
49 return status.New(c, msg)
50}
51
52// Newf returns New(c, fmt.Sprintf(format, a...)).
53func Newf(c codes.Code, format string, a ...any) *Status {

Callers 15

server.goFile · 0.92
handleStreamMethod · 0.92
checkRecvPayloadFunction · 0.92
TestRetryUnaryMethod · 0.92
TestRetryThrottlingMethod · 0.92
TestRetryStreamingMethod · 0.92
TestMaxCallAttemptsMethod · 0.92
TestNoRetryMethod · 0.92
handleStreamMethod · 0.92
handleStreamPingPongMethod · 0.92

Calls 1

NewFunction · 0.92

Tested by 15

TestRetryUnaryMethod · 0.74
TestRetryThrottlingMethod · 0.74
TestRetryStreamingMethod · 0.74
TestMaxCallAttemptsMethod · 0.74
TestNoRetryMethod · 0.74
handleStreamMethod · 0.74
handleStreamPingPongMethod · 0.74
handleStreamMisbehaveMethod · 0.74
handleStreamDelayReadMethod · 0.74