dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

Provide Protobuf definition for MetadataService for easier cross-language communication

Open chickenlj opened this issue 2 years ago • 1 comments

Provide Protobuf definition for MetadataService for easier cross-language communication. For example, service discovery between dubbo-go and dubbo-java

chickenlj avatar Dec 26 '23 13:12 chickenlj

Protobuf definition:

syntax = "proto3";
package org.apache.dubbo.metadata;

option go_package = "dubbo.apache.org/dubbo-go/v3/metadata/triple_api";
option java_package = "org.apache.dubbo.metadata";

service MetadataService {
  rpc GetMetadataInfo(Revision) returns (MetadataInfo) {}
}

message Revision {
  string value = 1;
}

message MetadataInfo {
  string app = 1;
  string revision = 2;
  map<string, ServiceInfo> services = 3;
}

message ServiceInfo {
  string name = 1;
  string group = 2;
  string version = 3;
  string protocol = 4;
  int32 port = 5;
  string path = 6;
  map<string, string> params = 7;
}

FoghostCn avatar Jan 03 '24 03:01 FoghostCn