github.com/s7techlab/cckit@v0.10.5/extensions/pinger/chaincode_pinger.proto (about)

     1  syntax = "proto3";
     2  
     3  option go_package = "github.com/s7techlab/cckit/extensions/pinger";
     4  
     5  package extensions.pinger;
     6  
     7  import "google/api/annotations.proto";
     8  import "google/protobuf/empty.proto";
     9  import "google/protobuf/timestamp.proto";
    10  
    11  service ChaincodePingerService {
    12    // ping chaincode
    13    rpc Ping (google.protobuf.Empty) returns (PingInfo) {
    14      option (google.api.http) = {
    15        post: "/chaincode/pinger/ping"
    16        body: "*"
    17      };
    18    }
    19  }
    20  
    21  // stores time and certificate of ping tx creator
    22  message PingInfo {
    23    string invoker_id = 1;
    24    bytes invoker_cert = 2;
    25    google.protobuf.Timestamp endorsing_server_time = 3;
    26    google.protobuf.Timestamp tx_time = 4;
    27  }