2021-03-18 22:14:56 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2022-08-09 13:43:01 +02:00
|
|
|
option go_package = "github.com/lbryio/herald.go/protobuf/go/pb";
|
2021-06-03 06:31:58 +02:00
|
|
|
import "result.proto";
|
2021-03-18 22:14:56 +01:00
|
|
|
|
|
|
|
package pb;
|
|
|
|
|
|
|
|
service Hub {
|
rocksdb (#29)
* Initial rocksdb commit
Basic reading from rocksdb works
* Try github action thing
* try local dockerfile
* asdf
* qwer
* asdf
* Try adding test db with git-lfs
* update action
* cleanup
* Don't hardcode stop on read
* Progress of reading rocksdb
* fixes and arg test
* asdf
* Fix rocksdb iterator and tests
* update script
* asdf
* Better iterator. Need to implement a lot of keys next, and tests, maybe
tests needed.
* asdf
* asdf
* asdf
* Implementation, testing, and cleanup.
Implemented more prefixes. Figured out a good test that should work for
all prefixes. Removed binary databases so we can just store human
readable csv files.
* more tests, prefixes and small refactor
* Another prefix
* EffectiveAmount
* ActiveAmount
* ActivatedClaimAndSupport
* PendingActivation
* ClaimTakeover
* ClaimExpiration
* SupportToClaim
* ClaimToSupport
* Fix bug with variable length keys
* ChannelToClaim
* ClaimToChannel
* ClaimShortID
* TXOToClaim
* ClaimToTXO
* BlockHeader
* BlockHash
* Undo
* HashXHistory
* Tx and big refactor
* rest the the keys
* Refactor and starting to add resolve
* asdf
* Refactor tests and add column families
* changes
* more work on implementing resolve
* code cleanup, function tests
* small code refactoring
* start building pieces of the test data set for full resolve.
* Export constant, add test
* another test
* TestGetTxHash
* more tests
* more tests
* More tests
* Refactor db functions into three files
* added slice backed stack, need to fix tests
* fix some issues with test suite
* some cleanup and adding arguments and db load / refresh to server command
* fix some bugs, start using logrus for leveled logging, upgrade to go 1.17, run go mod tidy
* logrus, protobuf updates, resolve grpc endpoint
* don't run integration test with unit tests
* signal handling and cleanup functions
* signal handling code files
* Unit tests for db stack
* reorganize bisect function so we lock it properly
* fix txcounts loading
* cleanup some logic around iterators and fix a bug where I was running two detect changes threads
* add some metrics
* cleanup
* blocking and filtering implemented
* add params for blocking and filtering channels and streams
* updates and fixes for integration tests
* use newer version of lbry.go when possible
* Add height endpoint and move string functions internal
* remove gitattributes, unused
* some cleanup
* more cleanup / refactor. almost ready for another review
* More cleanup
* use chainhash.Hash types from lbcd where appropriate
* update github action to go-1.17.8
* update go version needed
* trying to fix these builds
* cleanup
* trying to fix memory leak
* fix memory leak (iterator never finished so cleanup didn't run)
* changes per code review
* remove lbry.go v2
* rename sort.go search.go
* fix test
2022-04-29 17:04:01 +02:00
|
|
|
rpc Search(SearchRequest) returns (Outputs) {}
|
|
|
|
rpc Ping(EmptyMessage) returns (StringValue) {}
|
|
|
|
rpc Hello(HelloMessage) returns (HelloMessage) {}
|
|
|
|
rpc AddPeer(ServerMessage) returns (StringValue) {}
|
|
|
|
rpc PeerSubscribe(ServerMessage) returns (StringValue) {}
|
|
|
|
rpc Version(EmptyMessage) returns (StringValue) {}
|
|
|
|
rpc Features(EmptyMessage) returns (StringValue) {}
|
2021-09-18 19:21:32 +02:00
|
|
|
rpc Broadcast(EmptyMessage) returns (UInt32Value) {}
|
rocksdb (#29)
* Initial rocksdb commit
Basic reading from rocksdb works
* Try github action thing
* try local dockerfile
* asdf
* qwer
* asdf
* Try adding test db with git-lfs
* update action
* cleanup
* Don't hardcode stop on read
* Progress of reading rocksdb
* fixes and arg test
* asdf
* Fix rocksdb iterator and tests
* update script
* asdf
* Better iterator. Need to implement a lot of keys next, and tests, maybe
tests needed.
* asdf
* asdf
* asdf
* Implementation, testing, and cleanup.
Implemented more prefixes. Figured out a good test that should work for
all prefixes. Removed binary databases so we can just store human
readable csv files.
* more tests, prefixes and small refactor
* Another prefix
* EffectiveAmount
* ActiveAmount
* ActivatedClaimAndSupport
* PendingActivation
* ClaimTakeover
* ClaimExpiration
* SupportToClaim
* ClaimToSupport
* Fix bug with variable length keys
* ChannelToClaim
* ClaimToChannel
* ClaimShortID
* TXOToClaim
* ClaimToTXO
* BlockHeader
* BlockHash
* Undo
* HashXHistory
* Tx and big refactor
* rest the the keys
* Refactor and starting to add resolve
* asdf
* Refactor tests and add column families
* changes
* more work on implementing resolve
* code cleanup, function tests
* small code refactoring
* start building pieces of the test data set for full resolve.
* Export constant, add test
* another test
* TestGetTxHash
* more tests
* more tests
* More tests
* Refactor db functions into three files
* added slice backed stack, need to fix tests
* fix some issues with test suite
* some cleanup and adding arguments and db load / refresh to server command
* fix some bugs, start using logrus for leveled logging, upgrade to go 1.17, run go mod tidy
* logrus, protobuf updates, resolve grpc endpoint
* don't run integration test with unit tests
* signal handling and cleanup functions
* signal handling code files
* Unit tests for db stack
* reorganize bisect function so we lock it properly
* fix txcounts loading
* cleanup some logic around iterators and fix a bug where I was running two detect changes threads
* add some metrics
* cleanup
* blocking and filtering implemented
* add params for blocking and filtering channels and streams
* updates and fixes for integration tests
* use newer version of lbry.go when possible
* Add height endpoint and move string functions internal
* remove gitattributes, unused
* some cleanup
* more cleanup / refactor. almost ready for another review
* More cleanup
* use chainhash.Hash types from lbcd where appropriate
* update github action to go-1.17.8
* update go version needed
* trying to fix these builds
* cleanup
* trying to fix memory leak
* fix memory leak (iterator never finished so cleanup didn't run)
* changes per code review
* remove lbry.go v2
* rename sort.go search.go
* fix test
2022-04-29 17:04:01 +02:00
|
|
|
rpc Height(EmptyMessage) returns (UInt32Value) {}
|
|
|
|
rpc HeightSubscribe(UInt32Value) returns (stream UInt32Value) {}
|
|
|
|
rpc Resolve(StringArray) returns (Outputs) {}
|
2021-03-18 22:14:56 +01:00
|
|
|
}
|
|
|
|
|
2021-07-06 02:20:38 +02:00
|
|
|
message EmptyMessage {}
|
|
|
|
|
2021-10-25 03:39:37 +02:00
|
|
|
message ServerMessage {
|
|
|
|
string address = 1;
|
|
|
|
string port = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message HelloMessage {
|
|
|
|
string port = 1;
|
|
|
|
string host = 2;
|
|
|
|
repeated ServerMessage servers = 3;
|
|
|
|
}
|
|
|
|
|
2021-05-18 12:02:55 +02:00
|
|
|
message InvertibleField {
|
|
|
|
bool invert = 1;
|
|
|
|
repeated string value = 2;
|
2021-09-18 19:21:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message StringValue {
|
|
|
|
string value = 1;
|
2021-05-18 12:02:55 +02:00
|
|
|
}
|
|
|
|
|
rocksdb (#29)
* Initial rocksdb commit
Basic reading from rocksdb works
* Try github action thing
* try local dockerfile
* asdf
* qwer
* asdf
* Try adding test db with git-lfs
* update action
* cleanup
* Don't hardcode stop on read
* Progress of reading rocksdb
* fixes and arg test
* asdf
* Fix rocksdb iterator and tests
* update script
* asdf
* Better iterator. Need to implement a lot of keys next, and tests, maybe
tests needed.
* asdf
* asdf
* asdf
* Implementation, testing, and cleanup.
Implemented more prefixes. Figured out a good test that should work for
all prefixes. Removed binary databases so we can just store human
readable csv files.
* more tests, prefixes and small refactor
* Another prefix
* EffectiveAmount
* ActiveAmount
* ActivatedClaimAndSupport
* PendingActivation
* ClaimTakeover
* ClaimExpiration
* SupportToClaim
* ClaimToSupport
* Fix bug with variable length keys
* ChannelToClaim
* ClaimToChannel
* ClaimShortID
* TXOToClaim
* ClaimToTXO
* BlockHeader
* BlockHash
* Undo
* HashXHistory
* Tx and big refactor
* rest the the keys
* Refactor and starting to add resolve
* asdf
* Refactor tests and add column families
* changes
* more work on implementing resolve
* code cleanup, function tests
* small code refactoring
* start building pieces of the test data set for full resolve.
* Export constant, add test
* another test
* TestGetTxHash
* more tests
* more tests
* More tests
* Refactor db functions into three files
* added slice backed stack, need to fix tests
* fix some issues with test suite
* some cleanup and adding arguments and db load / refresh to server command
* fix some bugs, start using logrus for leveled logging, upgrade to go 1.17, run go mod tidy
* logrus, protobuf updates, resolve grpc endpoint
* don't run integration test with unit tests
* signal handling and cleanup functions
* signal handling code files
* Unit tests for db stack
* reorganize bisect function so we lock it properly
* fix txcounts loading
* cleanup some logic around iterators and fix a bug where I was running two detect changes threads
* add some metrics
* cleanup
* blocking and filtering implemented
* add params for blocking and filtering channels and streams
* updates and fixes for integration tests
* use newer version of lbry.go when possible
* Add height endpoint and move string functions internal
* remove gitattributes, unused
* some cleanup
* more cleanup / refactor. almost ready for another review
* More cleanup
* use chainhash.Hash types from lbcd where appropriate
* update github action to go-1.17.8
* update go version needed
* trying to fix these builds
* cleanup
* trying to fix memory leak
* fix memory leak (iterator never finished so cleanup didn't run)
* changes per code review
* remove lbry.go v2
* rename sort.go search.go
* fix test
2022-04-29 17:04:01 +02:00
|
|
|
message StringArray {
|
|
|
|
repeated string value = 1;
|
|
|
|
}
|
|
|
|
|
2021-08-12 09:19:54 +02:00
|
|
|
message BoolValue {
|
|
|
|
bool value = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message UInt32Value {
|
|
|
|
uint32 value = 1;
|
|
|
|
}
|
|
|
|
|
2021-05-18 12:02:55 +02:00
|
|
|
message RangeField {
|
2021-05-16 05:13:14 +02:00
|
|
|
enum Op {
|
|
|
|
EQ = 0;
|
|
|
|
LTE = 1;
|
|
|
|
GTE = 2;
|
|
|
|
LT = 3;
|
|
|
|
GT = 4;
|
|
|
|
}
|
|
|
|
Op op = 1;
|
2021-12-04 01:39:40 +01:00
|
|
|
repeated int32 value = 2;
|
2021-05-16 05:13:14 +02:00
|
|
|
}
|
|
|
|
|
2021-03-18 22:14:56 +01:00
|
|
|
message SearchRequest {
|
2021-08-12 09:19:54 +02:00
|
|
|
InvertibleField claim_id = 1;
|
|
|
|
InvertibleField channel_id = 2;
|
|
|
|
string text = 3;
|
2021-10-03 04:49:49 +02:00
|
|
|
int32 limit = 4;
|
2021-05-18 12:02:55 +02:00
|
|
|
repeated string order_by = 5;
|
2021-08-12 09:19:54 +02:00
|
|
|
uint32 offset = 6;
|
|
|
|
bool is_controlling = 7;
|
|
|
|
string last_take_over_height = 8;
|
|
|
|
string claim_name = 9;
|
|
|
|
string normalized_name = 10;
|
2021-12-03 02:16:06 +01:00
|
|
|
repeated RangeField tx_position = 11;
|
|
|
|
repeated RangeField amount = 12;
|
|
|
|
repeated RangeField timestamp = 13;
|
|
|
|
repeated RangeField creation_timestamp = 14;
|
|
|
|
repeated RangeField height = 15;
|
|
|
|
repeated RangeField creation_height = 16;
|
|
|
|
repeated RangeField activation_height = 17;
|
|
|
|
repeated RangeField expiration_height = 18;
|
|
|
|
repeated RangeField release_time = 19;
|
2021-08-12 09:19:54 +02:00
|
|
|
string short_url = 20;
|
|
|
|
string canonical_url = 21;
|
|
|
|
string title = 22;
|
|
|
|
string author = 23;
|
|
|
|
string description = 24;
|
|
|
|
repeated string claim_type = 25;
|
2021-12-03 02:16:06 +01:00
|
|
|
repeated RangeField repost_count = 26;
|
2021-08-12 09:19:54 +02:00
|
|
|
repeated string stream_type = 27;
|
|
|
|
repeated string media_type = 28;
|
2021-12-03 02:16:06 +01:00
|
|
|
repeated RangeField fee_amount = 29;
|
2021-08-12 09:19:54 +02:00
|
|
|
string fee_currency = 30;
|
2021-12-03 02:16:06 +01:00
|
|
|
repeated RangeField duration = 31;
|
2021-08-12 09:19:54 +02:00
|
|
|
string reposted_claim_id = 32;
|
2021-12-03 02:16:06 +01:00
|
|
|
repeated RangeField censor_type = 33;
|
2021-08-12 09:19:54 +02:00
|
|
|
string claims_in_channel = 34;
|
|
|
|
BoolValue is_signature_valid = 36;
|
2021-12-03 02:16:06 +01:00
|
|
|
repeated RangeField effective_amount = 37;
|
|
|
|
repeated RangeField support_amount = 38;
|
|
|
|
repeated RangeField trending_score = 39;
|
2021-08-12 09:19:54 +02:00
|
|
|
string tx_id = 43;
|
|
|
|
UInt32Value tx_nout = 44;
|
|
|
|
string signature = 45;
|
|
|
|
string signature_digest = 46;
|
|
|
|
string public_key_bytes = 47;
|
|
|
|
string public_key_id = 48;
|
|
|
|
repeated string any_tags = 49;
|
|
|
|
repeated string all_tags = 50;
|
|
|
|
repeated string not_tags = 51;
|
|
|
|
bool has_channel_signature = 52;
|
|
|
|
BoolValue has_source = 53;
|
2021-10-03 04:49:49 +02:00
|
|
|
int32 limit_claims_per_channel = 54;
|
2021-08-12 09:19:54 +02:00
|
|
|
repeated string any_languages = 55;
|
|
|
|
repeated string all_languages = 56;
|
|
|
|
bool remove_duplicates = 57;
|
|
|
|
bool no_totals = 58;
|
2021-12-17 15:37:32 +01:00
|
|
|
string sd_hash = 59;
|
|
|
|
}
|