四好公路
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

136 lines
5.0 KiB

{
"data" : {
"Id" : [
{ "name" : "scheme", "type" : "ustring" },
{ "name" : "id", "type" : "ustring" }
],
"ACL" : [
{ "name" : "perms", "type" : "int" },
{ "name" : "id", "type" : "data.Id" }
],
"Stat" : [
{ "name" : "czxid", "type" : "long" },
{ "name" : "mzxid", "type" : "long" },
{ "name" : "ctime", "type" : "long" },
{ "name" : "mtime", "type" : "long" },
{ "name" : "version", "type" : "int" },
{ "name" : "cversion", "type" : "int" },
{ "name" : "aversion", "type" : "int" },
{ "name" : "ephemeralOwner", "type" : "long" },
{ "name" : "dataLength", "type" : "int" },
{ "name" : "numChildren", "type" : "int" },
{ "name" : "pzxid", "type" : "long" }
]
},
"protocol" : {
"ConnectRequest" : [
{ "name" : "protocolVersion", "type" : "int"},
{ "name" : "lastZxidSeen", "type" : "long"},
{ "name" : "timeOut", "type" : "int"},
{ "name" : "sessionId", "type" : "long"},
{ "name" : "passwd", "type" : "buffer"}
],
"ConnectResponse" : [
{ "name" : "protocolVersion", "type" : "int" },
{ "name" : "timeOut", "type" : "int" },
{ "name" : "sessionId", "type" : "long" },
{ "name" : "passwd", "type" : "buffer" }
],
"RequestHeader" : [
{ "name" : "xid", "type" : "int" },
{ "name" : "type", "type" : "int"}
],
"ReplyHeader" : [
{ "name" : "xid", "type" : "int" },
{ "name" : "zxid", "type" : "long"},
{ "name" : "err", "type" : "int"}
],
"AuthPacket" : [
{ "name" : "type", "type" : "int" },
{ "name" : "scheme", "type" : "ustring" },
{ "name" : "auth", "type" : "buffer" }
],
"CreateRequest" : [
{ "name" : "path", "type" : "ustring" },
{ "name" : "data", "type" : "buffer" },
{ "name" : "acl", "type" : "vector<data.ACL>" },
{ "name" : "flags", "type" : "int" }
],
"CreateResponse" : [
{ "name" : "path", "type" : "ustring" }
],
"DeleteRequest" : [
{ "name" : "path", "type" : "ustring" },
{ "name" : "version", "type" : "int" }
],
"GetChildren2Request" : [
{ "name" : "path", "type" : "ustring" },
{ "name" : "watch", "type" : "boolean" }
],
"GetChildren2Response" : [
{ "name" : "children", "type" : "vector<ustring>" },
{ "name" : "stat", "type" : "data.Stat" }
],
"ExistsRequest" : [
{ "name" : "path", "type" : "ustring" },
{ "name" : "watch", "type" : "boolean" }
],
"ExistsResponse" : [
{ "name" : "stat", "type" : "data.Stat" }
],
"SetDataRequest" : [
{ "name" : "path", "type" : "ustring" },
{ "name" : "data", "type" : "buffer" },
{ "name" : "version", "type" : "int" }
],
"SetDataResponse" : [
{ "name" : "stat", "type" : "data.Stat" }
],
"GetDataRequest" : [
{ "name" : "path", "type" : "ustring" },
{ "name" : "watch", "type" : "boolean" }
],
"GetDataResponse" : [
{ "name" : "data", "type" : "buffer" },
{ "name" : "stat", "type" : "data.Stat" }
],
"GetACLRequest" : [
{ "name" : "path", "type" : "ustring" }
],
"GetACLResponse" : [
{ "name" : "acl", "type" : "vector<data.ACL>" },
{ "name" : "stat", "type" : "data.Stat" }
],
"SetACLRequest" : [
{ "name" : "path", "type" : "ustring" },
{ "name" : "acl", "type" : "vector<data.ACL>" },
{ "name" : "version", "type" : "int" }
],
"SetACLResponse" : [
{ "name" : "stat", "type" : "data.Stat" }
],
"WatcherEvent" : [
{ "name" : "type", "type" : "int" },
{ "name" : "state", "type" : "int" },
{ "name" : "path", "type" : "ustring" }
],
"SetWatches" : [
{ "name" : "relativeZxid", "type" : "long" },
{ "name" : "dataWatches", "type" : "vector<ustring>" },
{ "name" : "existWatches", "type" : "vector<ustring>" },
{ "name" : "childWatches", "type" : "vector<ustring>" }
],
"MultiHeader" : [
{ "name" : "type", "type" : "int" },
{ "name" : "done", "type" : "boolean" },
{ "name" : "err", "type" : "int" }
],
"CheckVersionRequest" : [
{ "name" : "path", "type" : "ustring" },
{ "name" : "version", "type" : "int" }
],
"ErrorResponse" : [
{ "name" : "err", "type" : "int" }
]
}
}