Skip to content
File

Blob: spec/proto/config.proto

protobuf31 lines
1syntax = "proto3";
2package protocol;
3 
4option optimize_for = SPEED;
5option go_package = "go.miragespace.co/specter/spec/protocol";
6 
7// Each physical server provides keyed reads of its local configuration replica.
8// Snapshot exchange is exposed only on authenticated Chord CONFIG streams.
9service ConfigService {
10 rpc Exchange(ConfigSnapshot) returns (ConfigSnapshot);
11 rpc Get(ConfigGetRequest) returns (ConfigRecord);
12}
13 
14message ConfigSnapshot {
15 // The shared configuration snapshot format, bounded to 8 MiB. Keeping it
16 // opaque here lets storage and replication use the same bounded codec.
17 bytes data = 1;
18}
19 
20message ConfigGetRequest {
21 string name = 1;
22}
23 
24message ConfigRecord {
25 string name = 1;
26 // The opaque 48-byte version used by configuration storage and replication.
27 bytes version = 2;
28 // Complete document bytes, including schemas unknown to this server.
29 bytes value = 3;
30}