MCPcopy
hub / github.com/PatchMon/PatchMon / decodeJSON

Function decodeJSON

server-source-code/internal/handler/common.go:62–64  ·  view source on GitHub ↗
(r *http.Request, v interface{})

Source from the content-addressed store, hash-verified

60}
61
62func decodeJSON(r *http.Request, v interface{}) error {
63 return json.NewDecoder(r.Body).Decode(v)
64}
65
66func parseIntQuery(r *http.Request, key string, def int) int {
67 s := r.URL.Query().Get(key)

Callers 15

UpdateMethod · 0.85
BulkUpdateMethod · 0.85
UpdateMethod · 0.85
CreateMethod · 0.85
UpdateMethod · 0.85
ResetPasswordMethod · 0.85
UpdateMethod · 0.85
UpdateLayoutMethod · 0.85
PerformActionMethod · 0.85
AssignMethod · 0.85
BulkDeleteMethod · 0.85
BulkActionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected