Files
services/password/proto/password.proto
2022-03-02 10:11:46 +00:00

23 lines
370 B
Protocol Buffer

syntax = "proto3";
package password;
option go_package = "./proto;password";
service Password {
rpc Generate(GenerateRequest) returns (GenerateResponse) {}
}
// Generate a strong random password
message GenerateRequest {
// password length; defaults to 16 chars
int32 length = 1;
}
message GenerateResponse {
// The generated password
string password = 1;
}