mirror of
https://github.com/tursodatabase/libsql.git
synced 2025-05-25 22:40:39 +00:00
32 lines
812 B
Protocol Buffer
32 lines
812 B
Protocol Buffer
syntax = "proto3";
|
|
package wal_log;
|
|
|
|
message LogOffset {
|
|
uint64 next_offset = 1;
|
|
}
|
|
|
|
message HelloRequest {}
|
|
|
|
message HelloResponse {
|
|
/// id of the replicated log
|
|
string log_id = 3;
|
|
/// string-encoded Uuid v4 token for the current session, changes on each restart, and must be passed in subsequent requests header.string
|
|
/// If the header session token fails to match the current session token, a NO_HELLO error is returned
|
|
bytes session_token = 4;
|
|
}
|
|
|
|
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) {}
|
|
}
|