2024-01-25 17:29:37 -08:00
|
|
|
syntax = "proto3";
|
|
|
|
package scanner;
|
|
|
|
|
|
|
|
// Empty is for gRPCs that take no arguments, currently only GetInfo.
|
|
|
|
message Empty {}
|
|
|
|
|
|
|
|
service Scanner {
|
|
|
|
// Get information about the scanner service.
|
|
|
|
rpc GetInfo (Empty) returns (InfoReply);
|
2024-02-06 13:08:56 -08:00
|
|
|
|
|
|
|
// Clear results for a set of keys without removing the keys from the scanner.
|
|
|
|
// This request does not stop the scanner from scanning blocks for these keys, it
|
|
|
|
// only clears past results.
|
|
|
|
rpc ClearResults(ClearResultsRequest) returns (Empty);
|
|
|
|
|
|
|
|
// Deletes a set of keys and their results from the scanner.
|
|
|
|
// This request stop the scanner from scanning blocks for the these keys.
|
|
|
|
rpc DeleteKeys(DeleteKeysRequest) returns (Empty);
|
2024-01-25 17:29:37 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// A response to a GetInfo call.
|
|
|
|
message InfoReply {
|
|
|
|
// The minimum sapling height allowed.
|
|
|
|
uint32 min_sapling_birthday_height = 1;
|
2024-02-06 13:08:56 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// A request for clearing past results from the scanner cache.
|
|
|
|
message ClearResultsRequest {
|
|
|
|
// Keys for which to clear results.
|
|
|
|
repeated string keys = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// A request to delete keys, delete their results, and stop scanning for their results.
|
|
|
|
message DeleteKeysRequest {
|
|
|
|
// Keys to delete from scanner.
|
|
|
|
repeated string keys = 1;
|
2024-01-25 17:29:37 -08:00
|
|
|
}
|