✨ MQ, KV and MQ allocator
This commit is contained in:
26
pkg/proto/allocator.proto
Normal file
26
pkg/proto/allocator.proto
Normal file
@@ -0,0 +1,26 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = ".;proto";
|
||||
|
||||
package proto;
|
||||
|
||||
service AllocatorService {
|
||||
rpc AllocMessageQueue(AllocMqRequest) returns (AllocMqResponse) {}
|
||||
rpc AllocKv(AllocKvRequest) returns (AllocKvResponse) {}
|
||||
}
|
||||
|
||||
message AllocMqRequest {
|
||||
}
|
||||
|
||||
message AllocMqResponse {
|
||||
bool is_success = 1;
|
||||
string addr = 2;
|
||||
}
|
||||
|
||||
message AllocKvRequest {
|
||||
}
|
||||
|
||||
message AllocKvResponse {
|
||||
bool is_success = 1;
|
||||
repeated string endpoints = 2;
|
||||
}
|
Reference in New Issue
Block a user