mirror of
https://github.com/fhmq/hmq.git
synced 2026-04-24 10:38:34 +00:00
28 lines
563 B
Protocol Buffer
28 lines
563 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
message QuerySubscribeRequest {
|
|
string Topic = 1;
|
|
int32 Qos = 2;
|
|
}
|
|
|
|
message QueryConnectRequest {
|
|
string ClientID = 1;
|
|
}
|
|
|
|
message DeliverMessageRequest {
|
|
string Topic = 1;
|
|
bytes Payload = 2;
|
|
int32 Qos = 3;
|
|
}
|
|
|
|
message Response {
|
|
int32 RetCode = 1;
|
|
string Message = 2;
|
|
}
|
|
|
|
//Service define
|
|
service HMQService {
|
|
rpc QuerySubscribe(QuerySubscribeRequest) returns (Response) {}
|
|
rpc QueryConnect(QueryConnectRequest) returns (Response) {}
|
|
rpc DeliverMessage(DeliverMessageRequest) returns (Response) {}
|
|
} |