mirror of https://github.com/status-im/go-waku.git
43 lines
728 B
Protocol Buffer
43 lines
728 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pb;
|
|
|
|
import "waku_message.proto";
|
|
|
|
message Index {
|
|
bytes digest = 1;
|
|
double receivedTime = 2;
|
|
}
|
|
|
|
message PagingInfo {
|
|
uint64 pageSize = 1;
|
|
Index cursor = 2;
|
|
enum Direction {
|
|
BACKWARD = 0;
|
|
FORWARD = 1;
|
|
}
|
|
Direction direction = 3;
|
|
}
|
|
|
|
message ContentFilter {
|
|
string contentTopic = 1;
|
|
}
|
|
|
|
message HistoryQuery {
|
|
repeated ContentFilter contentFilters = 2;
|
|
PagingInfo pagingInfo = 3; // used for pagination
|
|
double startTime = 4;
|
|
double endTime = 5;
|
|
}
|
|
|
|
message HistoryResponse {
|
|
repeated WakuMessage messages = 1;
|
|
PagingInfo pagingInfo = 2; // used for pagination
|
|
}
|
|
|
|
message HistoryRPC {
|
|
string request_id = 1;
|
|
HistoryQuery query = 2;
|
|
HistoryResponse response = 3;
|
|
}
|