gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/client/proto/client.proto (about)

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