(key string)
| 308 | } |
| 309 | |
| 310 | func (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 | |
| 325 | func (c *RawBinaryClient) receiveGetResponse(key string) GetResponse { |
| 326 | var flags uint32 |
no test coverage detected