github.com/godaddy-x/freego@v1.0.156/rpcx/proto/pub_worker.proto (about)

     1  syntax = "proto3";
     2  package pub_worker;
     3  option go_package = "/rpcx/pb";
     4  
     5  message GenerateIdReq {
     6    int64 node = 1;
     7    string kind = 2;
     8  }
     9  
    10  message GenerateIdRes {
    11    int64 value = 1;
    12  }
    13  
    14  message AuthorizeReq {
    15    string message = 1;
    16  }
    17  
    18  message AuthorizeRes {
    19    string token = 1;
    20    int64 expired = 2;
    21  }
    22  
    23  message PublicKeyReq {
    24  }
    25  
    26  message PublicKeyRes {
    27    string publicKey = 1;
    28  }
    29  
    30  service PubWorker{
    31    rpc GenerateId(GenerateIdReq) returns (GenerateIdRes){}
    32    rpc Authorize(AuthorizeReq) returns (AuthorizeRes){}
    33    rpc PublicKey(PublicKeyReq) returns (PublicKeyRes){}
    34  }