MCPcopy Create free account
hub / github.com/PostHog/duckgres / registerModelsAPI

Function registerModelsAPI

controlplane/admin/models_api.go:108–112  ·  view source on GitHub ↗

registerModelsAPI registers the read-only generic models explorer used by the admin dashboard's models browser.

(r *gin.RouterGroup, store *configstore.ConfigStore)

Source from the content-addressed store, hash-verified

106 // sidebar order remains Tenants → Runtime → Admin.
107 mk("operators", "Operators", modelGroupAdmin, false, configstore.Operator{}),
108 }
109}
110
111type modelsHandler struct {
112 store *configstore.ConfigStore
113}
114
115// autoKeyPrefix namespaces the keys of auto-discovered tables ("auto:<schema>.<table>").

Callers 2

RegisterAPIFunction · 0.85
TestModelsAPIPostgresFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestModelsAPIPostgresFunction · 0.68