MCPcopy Index your code
hub / github.com/coder/coder / serveEntitlements

Method serveEntitlements

enterprise/coderd/coderd.go:1298–1301  ·  view source on GitHub ↗

@Summary Get entitlements @ID get-entitlements @Security CoderSessionToken @Produce json @Tags Enterprise @Success 200 {object} codersdk.Entitlements @Router /api/v2/entitlements [get]

(rw http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

1296// @Success 200 {object} codersdk.Entitlements
1297// @Router /api/v2/entitlements [get]
1298func (api *API) serveEntitlements(rw http.ResponseWriter, r *http.Request) {
1299 ctx := r.Context()
1300 httpapi.Write(ctx, rw, http.StatusOK, api.Entitlements.AsJSON())
1301}
1302
1303func (api *API) runEntitlementsLoop(ctx context.Context) {
1304 eb := backoff.NewExponentialBackOff()

Callers

nothing calls this directly

Calls 3

WriteFunction · 0.92
AsJSONMethod · 0.80
ContextMethod · 0.65

Tested by

no test coverage detected