mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-05-17 06:56:32 +00:00
20 lines
381 B
Protocol Buffer
20 lines
381 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "./token";
|
|
|
|
package token;
|
|
|
|
|
|
// The greeting service definition.
|
|
service TokenService {
|
|
rpc TokenGenerate (TokenRequest) returns (TokenResponse) {}
|
|
rpc TokenValidate (TokenRequest) returns (TokenResponse) {}
|
|
}
|
|
|
|
message TokenRequest {}
|
|
|
|
message TokenResponse {
|
|
string token = 1;
|
|
string expiresAt = 2;
|
|
string message = 3;
|
|
} |