MCPcopy
hub / github.com/dropbox/godropbox / sendGetRequest

Method sendGetRequest

memcache/raw_binary_client.go:310–323  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

308}
309
310func (c *RawBinaryClient) sendGetRequest(key string) GetResponse {
311 if !isValidKeyString(key) {
312 return NewGetErrorResponse(
313 key,
314 errors.New("Invalid key"))
315 }
316
317 err := c.sendRequest(opGet, 0, []byte(key), nil)
318 if err != nil {
319 return NewGetErrorResponse(key, err)
320 }
321
322 return nil
323}
324
325func (c *RawBinaryClient) receiveGetResponse(key string) GetResponse {
326 var flags uint32

Callers 2

GetMethod · 0.95
GetMultiMethod · 0.95

Calls 4

sendRequestMethod · 0.95
NewFunction · 0.92
isValidKeyStringFunction · 0.85
NewGetErrorResponseFunction · 0.85

Tested by

no test coverage detected