Nexus/pkg/proto/allocator.proto
2024-10-24 23:46:09 +08:00

26 lines
436 B
Protocol Buffer

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;
}