MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / writeTenants

Function writeTenants

cli/internal/platform/inject_test.go:51–54  ·  view source on GitHub ↗
(w http.ResponseWriter, items ...map[string]any)

Source from the content-addressed store, hash-verified

49}
50
51func writeTenants(w http.ResponseWriter, items ...map[string]any) {
52 w.Header().Set("Content-Type", "application/json")
53 _ = json.NewEncoder(w).Encode(map[string]any{"items": items})
54}
55
56func writeSession(w http.ResponseWriter, token, apiURL string) {
57 w.Header().Set("Content-Type", "application/json")

Calls 2

SetMethod · 0.45
HeaderMethod · 0.45

Tested by

no test coverage detected