MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / getIntQuery

Method getIntQuery

rest/handler.go:1280–1282  ·  view source on GitHub ↗

Returns the integer value of a URL query, defaulting to 0 if unparseable

(query string, defaultValue uint64)

Source from the content-addressed store, hash-verified

1278
1279// Returns the integer value of a URL query, defaulting to 0 if unparseable
1280func (h *handler) getIntQuery(query string, defaultValue uint64) (value uint64) {
1281 return base.GetRestrictedIntQuery(h.getQueryValues(), query, defaultValue, 0, 0, false)
1282}
1283
1284func (h *handler) getJSONStringArrayQuery(param string) ([]string, error) {
1285 var strings []string

Callers 9

handleSetLoggingMethod · 0.95
getUsersMethod · 0.95
handleChangesMethod · 0.95
handleGetDocMethod · 0.95
handleViewMethod · 0.95
handleAllDocsMethod · 0.95
handleDumpChannelMethod · 0.95
handleBulkGetMethod · 0.95

Calls 2

getQueryValuesMethod · 0.95
GetRestrictedIntQueryFunction · 0.92

Tested by

no test coverage detected