MCPcopy
hub / github.com/grafana/tempo / UnmarshalJSON

Method UnmarshalJSON

tempodb/backend/uuid.go:65–80  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

63}
64
65func (u *UUID) UnmarshalJSON(data []byte) error {
66 var s string
67 err := json.Unmarshal(data, &s)
68 if err != nil {
69 return err
70 }
71
72 uu, err := google_uuid.Parse(s)
73 if err != nil {
74 return err
75 }
76
77 *u = UUID(uu)
78
79 return nil
80}

Callers 1

Test_roundTripFunction · 0.95

Calls 3

UUIDTypeAlias · 0.85
UnmarshalMethod · 0.65
ParseMethod · 0.65

Tested by 1

Test_roundTripFunction · 0.76