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

Method receiveCountResponse

memcache/raw_binary_client.go:668–684  ·  view source on GitHub ↗
(
	code opCode,
	key string)

Source from the content-addressed store, hash-verified

666}
667
668func (c *RawBinaryClient) receiveCountResponse(
669 code opCode,
670 key string) CountResponse {
671
672 status, _, _, value, err := c.receiveResponse(code)
673 if err != nil {
674 return NewCountErrorResponse(key, err)
675 }
676
677 valueBuffer := bytes.NewBuffer(value)
678 var count uint64
679 if err := binary.Read(valueBuffer, binary.BigEndian, &count); err != nil {
680 return NewCountErrorResponse(key, err)
681 }
682
683 return NewCountResponse(key, status, count)
684}
685
686// See Client interface for documentation.
687func (c *RawBinaryClient) Increment(

Callers 2

IncrementMethod · 0.95
DecrementMethod · 0.95

Calls 4

receiveResponseMethod · 0.95
NewCountErrorResponseFunction · 0.85
NewCountResponseFunction · 0.85
ReadMethod · 0.45

Tested by

no test coverage detected