protobuf cosmetics -- move response status enum up

This commit is contained in:
vyzo
2018-04-21 11:57:10 +03:00
parent 9bdee4fffb
commit 4059338ff0

View File

@@ -147,6 +147,16 @@ message Message {
DISCOVER_RESPONSE = 4;
}
enum ResponseStatus {
OK = 0;
E_INVALID_NAMESPACE = 100;
E_INVALID_PEER_INFO = 101;
E_INVALID_TTL = 102;
E_INVALID_COOKIE = 103;
E_NOT_AUTHORIZED = 200;
E_INTERNAL_ERROR = 300;
}
message PeerInfo {
optional bytes id = 1;
repeated bytes addrs = 2;
@@ -158,16 +168,6 @@ message Message {
optional int64 ttl = 3; // in seconds
}
enum ResponseStatus {
OK = 0;
E_INVALID_NAMESPACE = 100;
E_INVALID_PEER_INFO = 101;
E_INVALID_TTL = 102;
E_INVALID_COOKIE = 103;
E_NOT_AUTHORIZED = 200;
E_INTERNAL_ERROR = 300;
}
message RegisterResponse {
optional ResponseStatus status = 1;
optional string statusText = 2;