MCPcopy Create free account
hub / github.com/cortexproject/cortex / UnmarshalJSON

Method UnmarshalJSON

pkg/distributed_execution/remote_node.go:62–71  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

60}
61
62func (r *Remote) UnmarshalJSON(data []byte) error {
63 re := remote{}
64 if err := json.Unmarshal(data, &re); err != nil {
65 return err
66 }
67
68 r.FragmentKey = MakeFragmentKey(re.QueryID, re.FragmentID)
69 r.FragmentAddr = re.FragmentAddr
70 return nil
71}

Callers

nothing calls this directly

Calls 2

MakeFragmentKeyFunction · 0.85
UnmarshalMethod · 0.45

Tested by

no test coverage detected