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

Function PurgeDoc

rest/api_benchmark_test.go:320–325  ·  view source on GitHub ↗
(rt *RestTester, docid string)

Source from the content-addressed store, hash-verified

318}
319
320func PurgeDoc(rt *RestTester, docid string) {
321 response := rt.SendAdminRequest("POST", "/{{.keyspace}}/_purge", fmt.Sprintf(`{"%s":["*"]}`, docid))
322 if response.Code != 200 {
323 log.Printf("Unexpected purge response: %d %s", response.Code, response.Body.Bytes())
324 }
325}

Callers 4

BenchmarkReadOps_GetFunction · 0.85
BenchmarkReadOps_ChangesFunction · 0.85

Calls 1

SendAdminRequestMethod · 0.80

Tested by

no test coverage detected