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

Method getOptBoolQuery

rest/handler.go:1271–1277  ·  view source on GitHub ↗
(query string, defaultValue bool)

Source from the content-addressed store, hash-verified

1269}
1270
1271func (h *handler) getOptBoolQuery(query string, defaultValue bool) (result, isSet bool) {
1272 q := h.getQuery(query)
1273 if q == "" {
1274 return defaultValue, false
1275 }
1276 return q == "true", true
1277}
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) {

Callers 13

handlePostResyncMethod · 0.95
handleGetDbConfigMethod · 0.95
handleGetConfigMethod · 0.95
handleGetRawDocMethod · 0.95
getUsersMethod · 0.95
getRolesMethod · 0.95
handleChangesMethod · 0.95
getBoolQueryMethod · 0.95
handleGetDocMethod · 0.95
handleGetAttachmentMethod · 0.95
handlePutDocMethod · 0.95

Calls 1

getQueryMethod · 0.95

Tested by

no test coverage detected