|
|
@ -18,16 +18,16 @@ package keyvaluestore; |
|
|
|
|
|
|
|
|
|
|
|
// Key value store service definition. |
|
|
|
// Key value store service definition. |
|
|
|
service KeyValueStore { |
|
|
|
service KeyValueStore { |
|
|
|
// Provides a value for each key reques |
|
|
|
// Provides a value for each key request |
|
|
|
rpc GetValues (stream Key) returns (stream Value) {} |
|
|
|
rpc GetValues (stream Request) returns (stream Response) {} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// The request message containing the key |
|
|
|
// The request message containing the key |
|
|
|
message Key { |
|
|
|
message Request { |
|
|
|
string key = 1; |
|
|
|
string key = 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// The response message containing the greetings |
|
|
|
// The response message containing the value associated with the key |
|
|
|
message Value { |
|
|
|
message Response { |
|
|
|
string value = 1; |
|
|
|
string value = 1; |
|
|
|
} |
|
|
|
} |
|
|
|