MCPcopy
hub / github.com/CodisLabs/codis / jsonDecode

Function jsonDecode

pkg/models/encode.go:21–26  ·  view source on GitHub ↗
(v interface{}, b []byte)

Source from the content-addressed store, hash-verified

19}
20
21func jsonDecode(v interface{}, b []byte) error {
22 if err := json.Unmarshal(b, v); err != nil {
23 return errors.Trace(err)
24 }
25 return nil
26}

Callers 7

LoadTopomFunction · 0.85
LoadSlotMappingMethod · 0.85
ListGroupMethod · 0.85
LoadGroupMethod · 0.85
ListProxyMethod · 0.85
LoadProxyMethod · 0.85
LoadSentinelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected