caretta-sync/desktop/proto/caretta.proto

31 lines
517 B
Protocol Buffer
Raw Normal View History

2025-08-01 09:25:20 +09:00
syntax = "proto3";
2025-08-05 08:17:35 +09:00
package caretta;
2025-08-01 09:25:20 +09:00
enum PeerListOrderBy {
CREATED_AT = 0;
UPDATED_AT = 1;
PEER_ID = 2;
}
service CachedPeerService {
rpc List(CachedPeerListRequest) returns (CachedPeerListResponse);
}
message CachedPeerListRequest {
uint32 start = 1;
uint32 count = 2;
PeerListOrderBy order_by = 3;
}
2025-08-05 08:17:35 +09:00
message CachedPeerMessage {
2025-08-01 09:25:20 +09:00
string peer_id = 1;
2025-08-05 08:17:35 +09:00
repeated string multi_addresss = 2;
2025-08-01 09:25:20 +09:00
}
message CachedPeerListResponse {
2025-08-05 08:17:35 +09:00
repeated CachedPeerMessage peers = 1;
2025-08-01 09:25:20 +09:00
}