gRPC snowflake server

This commit is contained in:
Dustin Pianalto
2021-03-06 23:08:12 -09:00
parent a25f57d838
commit 31b31d2158
5 changed files with 133 additions and 6 deletions
+15
View File
@@ -0,0 +1,15 @@
syntax = "proto3";
package snowflake;
message Empty {
}
message SnowflakeReply {
string id_str = 1;
uint64 id = 2;
}
service Snowflake {
rpc GetSnowflake (Empty) returns (SnowflakeReply);
}