Created
July 29, 2013 22:51
-
-
Save PharkMillups/6108593 to your computer and use it in GitHub Desktop.
Riaks Counters vis PBC API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Counter update request | |
message RpbCounterUpdateReq { | |
required bytes bucket = 1; | |
required bytes key = 2; | |
required sint64 amount = 3; | |
optional uint32 w = 4; | |
optional uint32 dw = 5; | |
optional uint32 pw = 6; | |
optional bool returnvalue = 7; | |
} | |
// Counter update response | |
message RpbCounterUpdateResp { | |
optional sint64 value = 1; | |
} | |
// counter value | |
message RpbCounterGetReq { | |
required bytes bucket = 1; | |
required bytes key = 2; | |
optional uint32 r = 3; | |
optional uint32 pr = 4; | |
optional bool basic_quorum = 5; | |
optional bool notfound_ok = 6; | |
} | |
// Counter value response | |
message RpbCounterGetResp { | |
optional sint64 value = 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment