github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/kit/httptransport/transformer/testdata/testpbdata.proto (about)

     1  syntax = "proto3";
     2  package testdatapb;
     3  option go_package = "./;testdatapb";
     4  
     5  message Header {
     6    string event_type = 1; // event type
     7    string pub_id = 2;     // the unique identifier for publisher
     8    string token = 3;      // for validation message
     9    int64 pub_time = 4;    // event pub timestamp
    10    string event_id = 5;   // event id for tracing
    11  }
    12  
    13  message Event {
    14    Header header = 1;
    15    bytes payload = 2;
    16  }
    17  
    18  message Events {
    19    repeated Event data = 1;
    20  }
    21  
    22  message HandleResult {
    23    string event_id = 1;
    24    bool succeeded = 2;
    25    string err_msg = 3;
    26  }