File
Blob: spec/proto/config.proto
| 1 | syntax = "proto3"; |
| 2 | package protocol; |
| 3 | |
| 4 | option optimize_for = SPEED; |
| 5 | option 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. |
| 9 | service ConfigService { |
| 10 | rpc Exchange(ConfigSnapshot) returns (ConfigSnapshot); |
| 11 | rpc Get(ConfigGetRequest) returns (ConfigRecord); |
| 12 | } |
| 13 | |
| 14 | message 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 | |
| 20 | message ConfigGetRequest { |
| 21 | string name = 1; |
| 22 | } |
| 23 | |
| 24 | message 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 | } |