[FEATURE] design proto extensions for pub/sub #35

Open
opened 2023-07-31 01:06:49 +03:00 by vtolstov · 0 comments
Owner
syntax = "proto3";
package helloworld;

service GreeterService {
  option (pubsub) = {
    publisher {
      topic: "my_topic";
      message: ".helloworld.HelloReq";
    };
    subscriber {
      topic: "my_topic";
      group: "consumer_group";
      message: ".helloworld.HelloRsp";
    }
  };
}

message HelloReq {
  string name = 1;
}

message HelloRsp {
  string message = 1;
}
``` syntax = "proto3"; package helloworld; service GreeterService { option (pubsub) = { publisher { topic: "my_topic"; message: ".helloworld.HelloReq"; }; subscriber { topic: "my_topic"; group: "consumer_group"; message: ".helloworld.HelloRsp"; } }; } message HelloReq { string name = 1; } message HelloRsp { string message = 1; } ```
Sign in to join this conversation.
No description provided.