github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/proto/broker/broker.proto (about)

     1  syntax = "proto3";
     2  
     3  package broker;
     4  
     5  option go_package = "github.com/tickoalcantara12/micro/v3/proto/broker;broker";
     6  
     7  service Broker {
     8  	rpc Publish(PublishRequest) returns (Empty) {};
     9  	rpc Subscribe(SubscribeRequest) returns (stream Message) {};
    10  }
    11  
    12  message Empty {}
    13  
    14  message PublishRequest {
    15  	string topic = 1;
    16  	Message message = 2;
    17  }
    18  
    19  message SubscribeRequest {
    20  	string topic = 1;
    21  	string queue = 2;
    22  }
    23  
    24  message Message {
    25  	map<string,string> header = 1;
    26  	bytes body = 2;
    27  }