github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/booking/srv/auth/proto/auth.proto (about)

     1  syntax = "proto3";
     2  
     3  package auth;
     4  
     5  service Auth {
     6    rpc VerifyToken(Request) returns (Result) {}
     7  }
     8  
     9  message Request {
    10    string authToken = 1;
    11  }
    12  
    13  message Result {
    14    Customer customer = 1;
    15  }
    16  
    17  message Customer {
    18    int32 id = 1;
    19    string authToken = 2;
    20  }