refactor(server, protocol): split big message files into smaller and domain-based

This commit is contained in:
hdbg
2026-03-29 12:47:27 +02:00
parent 523bf783ac
commit cfe01ba1ad
16 changed files with 902 additions and 598 deletions

View File

@@ -0,0 +1,31 @@
syntax = "proto3";
package arbiter.user_agent.vault;
import "google/protobuf/empty.proto";
import "user_agent/vault/bootstrap.proto";
import "user_agent/vault/unseal.proto";
enum VaultState {
VAULT_STATE_UNSPECIFIED = 0;
VAULT_STATE_UNBOOTSTRAPPED = 1;
VAULT_STATE_SEALED = 2;
VAULT_STATE_UNSEALED = 3;
VAULT_STATE_ERROR = 4;
}
message Request {
oneof payload {
google.protobuf.Empty query_state = 1;
unseal.Request unseal = 2;
bootstrap.Request bootstrap = 3;
}
}
message Response {
oneof payload {
VaultState state = 1;
unseal.Response unseal = 2;
bootstrap.Response bootstrap = 3;
}
}