mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
Replace json protocol by protobuf generate protobuf files with `bun buf generate` or just `buf generate` - [x] Implement all datatypes with proto files - [x] Map to ts types or use the generated proto types directly with: - [x] web frontend - [x] relay - [x] runner - [ ] final performance test (to be done when CI builds new images) --------- Co-authored-by: DatCaptainHorse <DatCaptainHorse@users.noreply.github.com>
19 lines
322 B
Protocol Buffer
19 lines
322 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "relay/internal/proto";
|
|
|
|
import "types.proto";
|
|
import "latency_tracker.proto";
|
|
|
|
package proto;
|
|
|
|
message ProtoMessageBase {
|
|
string payload_type = 1;
|
|
ProtoLatencyTracker latency = 2;
|
|
}
|
|
|
|
message ProtoMessageInput {
|
|
ProtoMessageBase message_base = 1;
|
|
ProtoInput data = 2;
|
|
}
|