caretta-sync/lazy-supplements-desktop/proto/lazy_supplements.proto
2025-08-01 09:25:20 +09:00

28 lines
507 B
Protocol Buffer

syntax = "proto3";
package lazy_supplements;
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;
}
message CachedPeer {
string peer_id = 1;
repeated string multi_addresss = 2;
}
message CachedPeerListResponse {
repeated CachedPeer peers = 1;
}