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

Method genericOp

memcache/raw_binary_client.go:780–797  ·  view source on GitHub ↗
(
	code opCode,
	extras ...interface{})

Source from the content-addressed store, hash-verified

778}
779
780func (c *RawBinaryClient) genericOp(
781 code opCode,
782 extras ...interface{}) Response {
783
784 c.mutex.Lock()
785 defer c.mutex.Unlock()
786
787 err := c.sendRequest(code, 0, nil, nil, extras...)
788 if err != nil {
789 return NewErrorResponse(err)
790 }
791
792 status, _, _, _, err := c.receiveResponse(code)
793 if err != nil {
794 return NewErrorResponse(err)
795 }
796 return NewResponse(status)
797}
798
799// See Client interface for documentation.
800func (c *RawBinaryClient) Flush(expiration uint32) Response {

Callers 2

FlushMethod · 0.95
VerbosityMethod · 0.95

Calls 6

sendRequestMethod · 0.95
receiveResponseMethod · 0.95
NewErrorResponseFunction · 0.85
NewResponseFunction · 0.85
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected