func google.golang.org/grpc/status.New
19 uses
google.golang.org/grpc/status (current package)
status.go#L47: func New(c codes.Code, msg string) *Status {
status.go#L53: return New(c, fmt.Sprintf(format, a...))
status.go#L58: return New(c, msg).Err()
status.go#L88: return New(codes.Unknown, err.Error()), false
status.go#L121: return New(codes.DeadlineExceeded, err.Error())
status.go#L123: return New(codes.Canceled, err.Error())
status.go#L125: return New(codes.Unknown, err.Error())
google.golang.org/grpc
rpc_util.go#L617: return status.New(codes.Internal, "grpc: compressed flag set with identity or empty encoding")
server.go#L61: var statusOK = status.New(codes.OK, "")
server.go#L1453: appStatus = status.New(codes.Unknown, appErr.Error())
server.go#L1499: if err := t.WriteStatus(stream, status.New(codes.ResourceExhausted, errDesc)); err != nil {
server.go#L1540: if err := t.WriteStatus(stream, status.New(codes.Unimplemented, errDesc)); err != nil {
google.golang.org/grpc/internal/transport
http2_client.go#L835: t.closeStream(s, ErrConnClosing, false, http2.ErrCodeNo, status.New(codes.Unavailable, ErrConnClosing.Desc), nil, false)
http2_client.go#L983: t.closeStream(s, io.EOF, true, http2.ErrCodeFlowControl, status.New(codes.Internal, err.Error()), nil, false)
http2_client.go#L1004: t.closeStream(s, io.EOF, false, http2.ErrCodeNo, status.New(codes.Internal, "server closed the stream without sending trailers"), nil, true)
http2_client.go#L1201: st := status.New(codes.Internal, "a HEADERS frame cannot appear in the middle of a stream")
http2_client.go#L1310: t.closeStream(s, status.Error(code, msg), true, http2.ErrCodeProtocol, status.New(code, msg), nil, false)
http_util.go#L191: d.data.statusGen = status.New(codes.Code(int32(*(d.data.rawStatusCode))), d.data.rawStatusMsg)
transport.go#L754: statusGoAway = status.New(codes.Unavailable, "the stream is rejected because server is draining the connection")
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |