syntax = "proto3"; package rabbitmqrpc; // 配置信息请求结构 message Request { string data = 1; string time = 2; string sign = 3; } // 配置信息响应结构 message Response { string data = 1; string time = 2; string sign = 3; } // rpc方法 service RabbitmqService { rpc send (Request) returns (Response); // 发送消息 rpc sendDelay (Request) returns (Response); // 发送延迟消息 }