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

Method Proto

internal/status/status.go:117–122  ·  view source on GitHub ↗

Proto returns s's status as an spb.Status proto message.

()

Source from the content-addressed store, hash-verified

115
116// Proto returns s's status as an spb.Status proto message.
117func (s *Status) Proto() *spb.Status {
118 if s == nil {
119 return nil
120 }
121 return proto.Clone(s.s).(*spb.Status)
122}
123
124// Err returns an immutable error representing s; returns nil if s.Code() is OK.
125func (s *Status) Err() error {

Callers 15

WithDetailsMethod · 0.95
newServerTrailerEntryMethod · 0.80
testDoneInfoFunction · 0.80
toProtoMethod · 0.80
writeStatusMethod · 0.80
StatusErrEqualFunction · 0.80
FromErrorFunction · 0.80
TestStatusDetailsMethod · 0.80
errEqualFunction · 0.80
TestFromToProtoMethod · 0.80

Calls 1

CloneMethod · 0.65

Tested by 10

newServerTrailerEntryMethod · 0.64
testDoneInfoFunction · 0.64
TestStatusDetailsMethod · 0.64
errEqualFunction · 0.64
TestFromToProtoMethod · 0.64
TestFromNilProtoMethod · 0.64
strFunction · 0.64