Database allocator

This commit is contained in:
2024-10-20 19:04:41 +08:00
parent e5a32bc05a
commit 4adbfe9c19
23 changed files with 536 additions and 29 deletions

18
pkg/proto/database.proto Normal file
View File

@@ -0,0 +1,18 @@
syntax = "proto3";
option go_package = ".;proto";
package proto;
service DatabaseController {
rpc AllocDatabase(AllocDatabaseRequest) returns (AllocDatabaseResponse) {}
}
message AllocDatabaseRequest {
string name = 1;
}
message AllocDatabaseResponse {
bool is_success = 1;
string dsn = 2;
}