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

Method Int64

coderd/httpapi/queryparams.go:85–97  ·  view source on GitHub ↗
(vals url.Values, def int64, queryParam string)

Source from the content-addressed store, hash-verified

83}
84
85func (p *QueryParamParser) Int64(vals url.Values, def int64, queryParam string) int64 {
86 v, err := parseQueryParam(p, vals, func(v string) (int64, error) {
87 return strconv.ParseInt(v, 10, 64)
88 }, def, queryParam)
89 if err != nil {
90 p.Errors = append(p.Errors, codersdk.ValidationError{
91 Field: queryParam,
92 Detail: fmt.Sprintf("Query param %q must be a valid 64-bit integer: %s", queryParam, err.Error()),
93 })
94 return 0
95 }
96 return v
97}
98
99// PositiveInt32 function checks if the given value is 32-bit and positive.
100//

Callers 15

UsersFunction · 0.95
MembersFunction · 0.95
TestExternalAuthByIDFunction · 0.80
TestUserOAuth2GithubFunction · 0.80
coerceEmailVerifiedFunction · 0.80
TokenMethod · 0.80
TestBackpressureFunction · 0.80
flattenAndSumFunction · 0.80
numericContextLimitValueFunction · 0.80
LogEntryMethod · 0.80
acquireAndRunOneMethod · 0.80
updateMethod · 0.80

Calls 2

parseQueryParamFunction · 0.85
ErrorMethod · 0.45