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

Function NewQueryParamParser

coderd/httpapi/queryparams.go:34–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func NewQueryParamParser() *QueryParamParser {
35 return &QueryParamParser{
36 Errors: []codersdk.ValidationError{},
37 Parsed: map[string]bool{},
38 RequiredNotEmptyParams: map[string]bool{},
39 }
40}
41
42// ErrorExcessParams checks if any query params were passed in that were not
43// parsed. If so, it adds an error to the parser as these values are not valid

Callers 15

provisionerDaemonsMethod · 0.92
ParsePaginationFunction · 0.92
returnDAUsInternalMethod · 0.92
insightsUserActivityMethod · 0.92
insightsUserLatencyMethod · 0.92
insightsTemplatesMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestParseQueryParamsFunction · 0.74