MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / unmarshalError

Function unmarshalError

cmd/client/command/client.go:77–86  ·  view source on GitHub ↗
(body []byte)

Source from the content-addressed store, hash-verified

75}
76
77func unmarshalError(body []byte) error {
78 var rsp response
79 if err := json.Unmarshal(body, &rsp); err != nil {
80 return err
81 }
82 if rsp.Error != nil {
83 return errors.New(rsp.Error.Message)
84 }
85 return nil
86}

Callers 15

listRaftPeersFunction · 0.85
addRaftPeerFunction · 0.85
removeRaftPeerFunction · 0.85
failoverShardFunction · 0.85
deleteNamespaceFunction · 0.85
deleteClusterFunction · 0.85
deleteShardFunction · 0.85
deleteNodeFunction · 0.85
createNamespaceFunction · 0.85
createClusterFunction · 0.85
createShardFunction · 0.85
createNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected