0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-06-24 20:35:43 +00:00
Files
libsql/libsql-server/proto/replication_log.proto
2023-10-17 17:41:26 +02:00

33 lines
708 B
Protocol Buffer

syntax = "proto3";
package wal_log;
message LogOffset {
uint64 next_offset = 1;
}
message HelloRequest {}
message HelloResponse {
/// Uuid of the current generation
string generation_id = 1;
/// First frame_no in the current generation
uint64 generation_start_index = 2;
/// Uuid of the database being replicated
string database_id = 3;
}
message Frame {
bytes data = 1;
}
message Frames {
repeated Frame frames = 1;
}
service ReplicationLog {
rpc Hello(HelloRequest) returns (HelloResponse) {}
rpc LogEntries(LogOffset) returns (stream Frame) {}
rpc BatchLogEntries(LogOffset) returns (Frames) {}
rpc Snapshot(LogOffset) returns (stream Frame) {}
}