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

Method RequiredNotEmpty

coderd/httpapi/queryparams.go:176–181  ·  view source on GitHub ↗
(queryParam ...string)

Source from the content-addressed store, hash-verified

174}
175
176func (p *QueryParamParser) RequiredNotEmpty(queryParam ...string) *QueryParamParser {
177 for _, q := range queryParam {
178 p.RequiredNotEmptyParams[q] = true
179 }
180 return p
181}
182
183// UUIDorName will parse a string as a UUID, if it fails, it uses the "fetchByName"
184// function to return a UUID based on the value as a string.

Callers 14

TestParseQueryParamsFunction · 0.95
httpHandlerMethod · 0.95
workspaceAgentPTYMethod · 0.95
extractAuthorizeParamsFunction · 0.95
extractTokenRequestFunction · 0.95
insightsUserActivityMethod · 0.80
insightsUserLatencyMethod · 0.80
insightsTemplatesMethod · 0.80
HandleReadFileMethod · 0.80
HandleReadFileLinesMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestParseQueryParamsFunction · 0.76