MCPcopy Index your code
hub / github.com/Permify/permify / Decode

Method Decode

pkg/development/file/decoder.go:76–87  ·  view source on GitHub ↗

Decode - decode HTTP

(out interface{})

Source from the content-addressed store, hash-verified

74
75// Decode - decode HTTP
76func (d HTTPDecoder) Decode(out interface{}) (err error) {
77 r, err := http.Get(d.url)
78 if err != nil {
79 return err
80 }
81 defer r.Body.Close()
82 data, err := io.ReadAll(r.Body)
83 if err != nil {
84 return err
85 }
86 return yaml.Unmarshal(data, out)
87}

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected