MCPcopy Index your code
hub / github.com/CodisLabs/codis / apiMarshalJson

Function apiMarshalJson

pkg/utils/rpc/api.go:107–109  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

105}
106
107func apiMarshalJson(v interface{}) ([]byte, error) {
108 return json.MarshalIndent(v, "", " ")
109}
110
111func apiRequestJson(method string, url string, args, reply interface{}) error {
112 var body []byte

Callers 3

apiRequestJsonFunction · 0.85
ApiResponseErrorFunction · 0.85
ApiResponseJsonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected