google.golang.org/grpc/internal/status.Status.Code (method)
16 uses
google.golang.org/grpc/internal/status (current package)
status.go#L72: func (s *Status) Code() codes.Code {
status.go#L97: if s.Code() == codes.OK {
status.go#L106: if s.Code() == codes.OK {
google.golang.org/grpc/internal/binarylog
method_logger.go#L335: StatusCode: uint32(st.Code()),
google.golang.org/grpc/internal/transport
handler_server.go#L201: h.Set("Grpc-Status", fmt.Sprintf("%d", st.Code()))
http2_server.go#L314: rstCode: statusCodeConvTab[se.Code()],
http2_server.go#L865: headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-status", Value: strconv.Itoa(int(st.Code()))})
google.golang.org/grpc
stream.go#L537: code = cs.attempt.s.Status().Code()
stream.go#L539: code = status.Convert(err).Code()
stream.go#L626: if err == nil || (err == io.EOF && a.s.Status().Code() == codes.OK) {
google.golang.org/grpc/status
status.go#L108: return se.GRPCStatus().Code()
cloud.google.com/go/internal/trace
trace.go#L48: return trace.Status{Code: int32(s.Code()), Message: s.Message()}
cloud.google.com/go/profiler
profiler.go#L305: if st != nil && st.Code() == codes.Aborted {
github.com/googleapis/gax-go/v2
call_option.go#L88: c := st.Code()
go.opencensus.io/plugin/ocgrpc
stats_common.go#L176: switch c := s.Code(); c {
trace_common.go#L100: span.SetStatus(trace.Status{Code: int32(s.Code()), Message: s.Message()})
![]() |
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. |