github.com/btccom/go-micro/v2@v2.9.3/api/service/proto/api.proto (about) 1 syntax = "proto3"; 2 3 package go.micro.api; 4 5 service Api { 6 rpc Register(Endpoint) returns (EmptyResponse) {}; 7 rpc Deregister(Endpoint) returns (EmptyResponse) {}; 8 } 9 10 message Endpoint { 11 string name = 1; 12 repeated string host = 2; 13 repeated string path = 3; 14 repeated string method = 4; 15 bool stream = 5; 16 } 17 18 message EmptyResponse {}