MCPcopy Create free account
hub / github.com/go-dev-frame/sponge / Code

Method Code

pkg/errcode/rpc_error.go:59–61  ·  view source on GitHub ↗

Code get code

()

Source from the content-addressed store, hash-verified

57
58// Code get code
59func (s *RPCStatus) Code() codes.Code {
60 return s.status.Code()
61}
62
63// Msg get message
64func (s *RPCStatus) Msg() string {

Callers 8

TestRPCStatusFunction · 0.95
ErrMethod · 0.45
ErrToHTTPMethod · 0.45
ToRPCErrMethod · 0.45
ToRPCCodeMethod · 0.45
convertToHTTPCodeFunction · 0.45
GetStatusCodeFunction · 0.45
IsStatusFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestRPCStatusFunction · 0.76