-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: scylladb cosumer and refactor scylla sink
- Loading branch information
Showing
16 changed files
with
2,369 additions
and
1,257 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
fn main() -> anyhow::Result<()> { | ||
std::env::set_var("PROTOC", protobuf_src::protoc()); | ||
tonic_build::compile_protos("proto/geyser.proto")?; | ||
tonic_build::compile_protos("proto/yellowstone-log.proto")?; | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
syntax = "proto3"; | ||
|
||
import public "geyser.proto"; | ||
|
||
|
||
option go_package = "github.com/rpcpool/solana-geyser-grpc/golang/proto"; | ||
|
||
package yellowstone.log; | ||
|
||
service YellowstoneLog { | ||
rpc Consume(ConsumeRequest) returns (stream geyser.SubscribeUpdate) {} | ||
} | ||
|
||
|
||
enum InitialOffsetPolicy { | ||
EARLIEST = 0; | ||
LATEST = 1; | ||
SLOT = 2; | ||
} | ||
|
||
enum EventSubscriptionPolicy { | ||
ACCOUNT_UPDATE_ONLY = 0; | ||
TRANSACTION_ONLY = 1; | ||
BOTH = 2; | ||
} | ||
|
||
message ConsumeRequest { | ||
optional string consumer_id = 1; | ||
InitialOffsetPolicy initial_offset_policy = 2; | ||
optional int64 at_slot = 3; | ||
EventSubscriptionPolicy event_subscription_policy = 4; | ||
optional AccountUpdateEventFilter account_update_event_filter = 5; | ||
optional TransactionEventFilter tx_event_filter = 6; | ||
} | ||
|
||
message AccountUpdateEventFilter { | ||
repeated bytes pubkeys = 1; | ||
repeated bytes owners = 2; | ||
} | ||
|
||
message TransactionEventFilter { | ||
repeated bytes account_keys = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.