Skip to content

Instantly share code, notes, and snippets.

@PharkMillups
Created July 29, 2013 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PharkMillups/6108593 to your computer and use it in GitHub Desktop.
Save PharkMillups/6108593 to your computer and use it in GitHub Desktop.
Riaks Counters vis PBC API
// 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