[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 Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: unistack-org/micro-proto#35
No description provided.