github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/proto/client/client.proto (about) 1 syntax = "proto3"; 2 3 package client; 4 5 option go_package = "github.com/tickoalcantara12/micro/v3/proto/client;client"; 6 7 // Client is the micro client interface 8 service Client { 9 // Call allows a single request to be made 10 rpc Call(Request) returns (Response) {}; 11 // Stream is a bidirectional stream 12 rpc Stream(stream Request) returns (stream Response) {}; 13 // Publish publishes a message and returns an empty Message 14 rpc Publish(Message) returns (Message) {}; 15 } 16 17 message Request { 18 string service = 1; 19 string endpoint = 2; 20 string content_type = 3; 21 bytes body = 4; 22 } 23 24 message Response { 25 bytes body = 1; 26 } 27 28 message Message { 29 string topic = 1; 30 string content_type = 2; 31 bytes body = 3; 32 }