19 lines
339 B
Protocol Buffer
19 lines
339 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package go.micro.api;
|
||
|
|
||
|
service Api {
|
||
|
rpc Register(Endpoint) returns (EmptyResponse) {};
|
||
|
rpc Deregister(Endpoint) returns (EmptyResponse) {};
|
||
|
}
|
||
|
|
||
|
message Endpoint {
|
||
|
string name = 1;
|
||
|
repeated string host = 2;
|
||
|
repeated string path = 3;
|
||
|
repeated string method = 4;
|
||
|
bool stream = 5;
|
||
|
}
|
||
|
|
||
|
message EmptyResponse {}
|