github.com/MetalBlockchain/metalgo@v1.11.9/proto/appsender/appsender.proto (about)

     1  syntax = "proto3";
     2  
     3  package appsender;
     4  
     5  import "google/protobuf/empty.proto";
     6  
     7  option go_package = "github.com/ava-labs/avalanchego/proto/pb/appsender";
     8  
     9  service AppSender {
    10    rpc SendAppRequest(SendAppRequestMsg) returns (google.protobuf.Empty);
    11    rpc SendAppResponse(SendAppResponseMsg) returns (google.protobuf.Empty);
    12    rpc SendAppError(SendAppErrorMsg) returns (google.protobuf.Empty);
    13    rpc SendAppGossip(SendAppGossipMsg) returns (google.protobuf.Empty);
    14  
    15    rpc SendCrossChainAppRequest(SendCrossChainAppRequestMsg) returns (google.protobuf.Empty);
    16    rpc SendCrossChainAppResponse(SendCrossChainAppResponseMsg) returns (google.protobuf.Empty);
    17    rpc SendCrossChainAppError(SendCrossChainAppErrorMsg) returns (google.protobuf.Empty);
    18  }
    19  
    20  message SendAppRequestMsg {
    21    // The nodes to send this request to
    22    repeated bytes node_ids = 1;
    23    // The ID of this request
    24    uint32 request_id = 2;
    25    // The request body
    26    bytes request = 3;
    27  }
    28  
    29  message SendAppResponseMsg {
    30    // The node to send a response to
    31    bytes node_id = 1;
    32    // ID of this request
    33    uint32 request_id = 2;
    34    // The response body
    35    bytes response = 3;
    36  }
    37  
    38  message SendAppErrorMsg {
    39    // The node to send a response to
    40    bytes node_id = 1;
    41    // ID of this request
    42    uint32 request_id = 2;
    43    // Application-defined error code
    44    sint32 error_code = 3;
    45    // Application-defined error message
    46    string error_message = 4;
    47  }
    48  
    49  message SendAppGossipMsg {
    50    // Who to send this message to
    51    repeated bytes node_ids = 1;
    52    uint64 validators = 2;
    53    uint64 non_validators = 3;
    54    uint64 peers = 4;
    55    // The message body
    56    bytes msg = 5;
    57  }
    58  
    59  message SendCrossChainAppRequestMsg {
    60    // The chain to send this request to
    61    bytes chain_id = 1;
    62    // the ID of this request
    63    uint32 request_id = 2;
    64    // The request body
    65    bytes request = 3;
    66  }
    67  
    68  message SendCrossChainAppResponseMsg {
    69    // The chain to send this response to
    70    bytes chain_id = 1;
    71    // the ID of this request
    72    uint32 request_id = 2;
    73    // The response body
    74    bytes response = 3;
    75  }
    76  
    77  message SendCrossChainAppErrorMsg {
    78    // The chain to send a response to
    79    bytes chain_id = 1;
    80    // ID of this request
    81    uint32 request_id = 2;
    82    // Application-defined error code
    83    sint32 error_code = 3;
    84    // Application-defined error message
    85    string error_message = 4;
    86  }