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

Method Code

internal/status/status.go:101–106  ·  view source on GitHub ↗

Code returns the status code contained in s.

()

Source from the content-addressed store, hash-verified

99
100// Code returns the status code contained in s.
101func (s *Status) Code() codes.Code {
102 if s == nil || s.s == nil {
103 return codes.OK
104 }
105 return codes.Code(s.s.Code)
106}
107
108// Message returns the message contained in s.
109func (s *Status) Message() string {

Callers 15

ErrMethod · 0.95
WithDetailsMethod · 0.95
StringMethod · 0.95
shouldRetryMethod · 0.80
withRetryMethod · 0.80
newServerTrailerEntryMethod · 0.80
finishRPCMethod · 0.80
retryUntilFunction · 0.80

Calls 1

CodeTypeAlias · 0.92