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

     1  syntax = "proto3";
     2  
     3  package sharedmemory;
     4  
     5  option go_package = "github.com/ava-labs/avalanchego/proto/pb/sharedmemory";
     6  
     7  service SharedMemory {
     8    rpc Get(GetRequest) returns (GetResponse);
     9    rpc Indexed(IndexedRequest) returns (IndexedResponse);
    10    rpc Apply(ApplyRequest) returns (ApplyResponse);
    11  }
    12  
    13  message BatchPut {
    14    bytes key = 1;
    15    bytes value = 2;
    16  }
    17  
    18  message BatchDelete {
    19    bytes key = 1;
    20  }
    21  
    22  message Batch {
    23    repeated BatchPut puts = 1;
    24    repeated BatchDelete deletes = 2;
    25  }
    26  
    27  message AtomicRequest {
    28    repeated bytes remove_requests = 1;
    29    repeated Element put_requests = 2;
    30    bytes peer_chain_id = 3;
    31  }
    32  
    33  message Element {
    34    bytes key = 1;
    35    bytes value = 2;
    36    repeated bytes traits = 3;
    37  }
    38  
    39  message GetRequest {
    40    bytes peer_chain_id = 1;
    41    repeated bytes keys = 2;
    42  }
    43  
    44  message GetResponse {
    45    repeated bytes values = 1;
    46  }
    47  
    48  message IndexedRequest {
    49    bytes peer_chain_id = 1;
    50    repeated bytes traits = 2;
    51    bytes start_trait = 3;
    52    bytes start_key = 4;
    53    int32 limit = 5;
    54  }
    55  
    56  message IndexedResponse {
    57    repeated bytes values = 1;
    58    bytes last_trait = 2;
    59    bytes last_key = 3;
    60  }
    61  
    62  message ApplyRequest {
    63    repeated AtomicRequest requests = 1;
    64    repeated Batch batches = 2;
    65  }
    66  
    67  message ApplyResponse {}