mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
23 lines
370 B
Protocol Buffer
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;
|
|
}
|
|
|
|
|