MCPcopy
hub / github.com/control-theory/gonzo / handleClasses

Method handleClasses

internal/web/api.go:68–76  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

66}
67
68func (s *Server) handleClasses(w http.ResponseWriter, r *http.Request) {
69 filters := parseFilters(r)
70 data, err := s.engine.QueryClasses(r.Context(), filters)
71 if err != nil {
72 writeError(w, http.StatusInternalServerError, err.Error())
73 return
74 }
75 writeJSON(w, data)
76}
77
78func (s *Server) handleLogs(w http.ResponseWriter, r *http.Request) {
79 filters := parseFilters(r)

Callers

nothing calls this directly

Calls 4

parseFiltersFunction · 0.85
writeErrorFunction · 0.85
writeJSONFunction · 0.85
QueryClassesMethod · 0.80

Tested by

no test coverage detected