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

Function OrganizationMembersParam

coderd/httpmw/organizationparam.go:44–50  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

42}
43
44func OrganizationMembersParam(r *http.Request) OrganizationMembers {
45 organizationMembers, ok := r.Context().Value(organizationMembersParamContextKey{}).(OrganizationMembers)
46 if !ok {
47 panic("developer error: organization members param middleware not provided")
48 }
49 return organizationMembers
50}
51
52// ExtractOrganizationParam grabs an organization from the "organization" URL parameter.
53// This middleware requires the API key middleware higher in the call stack for authentication.

Callers 6

postUserWorkspacesMethod · 0.92
tasksCreateMethod · 0.92
TestOrganizationParamFunction · 0.92
ExtractTaskParamFunction · 0.85

Calls 2

ContextMethod · 0.65
ValueMethod · 0.45

Tested by 1

TestOrganizationParamFunction · 0.74