From 3c62bfb7a3a9fee3d0959bc7e37e598e3eb0dc03 Mon Sep 17 00:00:00 2001 From: mqliang Date: Sun, 3 Apr 2016 13:44:45 +0800 Subject: [PATCH] etcdctlv3: add status rpc in protbuffer file --- etcdserver/etcdserverpb/rpc.proto | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/etcdserver/etcdserverpb/rpc.proto b/etcdserver/etcdserverpb/rpc.proto index 82fb6c1a8..5ac8f5827 100644 --- a/etcdserver/etcdserverpb/rpc.proto +++ b/etcdserver/etcdserverpb/rpc.proto @@ -75,6 +75,9 @@ service Maintenance { // Alarm activates, deactivates, and queries alarms regarding cluster health. rpc Alarm(AlarmRequest) returns (AlarmResponse) {} + // Status gets the status of the member. + rpc Status(StatusRequest) returns (StatusResponse) {} + rpc Defragment(DefragmentRequest) returns (DefragmentResponse) {} // Hash returns the hash of the local KV state for consistency checking purpose. @@ -471,6 +474,14 @@ message AlarmResponse { repeated AlarmMember alarms = 2; } +message StatusRequest { +} + +message StatusResponse { + ResponseHeader header = 1; + string version = 2; +} + message AuthEnableRequest { }