MCPcopy
hub / github.com/dosco/graphjin / processNode

Method processNode

core/cache_response.go:292–308  ·  view source on GitHub ↗
(
	tableName string,
	data interface{},
	refs *[]RowRef,
	sel *qcode.Select,
)

Source from the content-addressed store, hash-verified

290}
291
292func (rp *ResponseProcessor) processNode(
293 tableName string,
294 data interface{},
295 refs *[]RowRef,
296 sel *qcode.Select,
297) {
298 switch v := data.(type) {
299 case map[string]interface{}:
300 rp.processObject(tableName, v, refs, sel)
301 case []interface{}:
302 for _, item := range v {
303 if obj, ok := item.(map[string]interface{}); ok {
304 rp.processObject(tableName, obj, refs, sel)
305 }
306 }
307 }
308}
309
310func (rp *ResponseProcessor) processObject(
311 tableName string,

Callers 2

ProcessForCacheMethod · 0.95
processObjectMethod · 0.95

Calls 1

processObjectMethod · 0.95

Tested by

no test coverage detected