Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new RPC service to eventually replace existing separated client services #19

Merged
merged 7 commits into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions proto/relay.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package relay;

import "config/backend.proto";
import "config/orb.proto";
import "google/protobuf/any.proto";
import "self_serve/app/v1/app.proto";
import "self_serve/orb/v1/orb.proto";

Expand All @@ -19,6 +20,10 @@ message Entity {
EntityType entity_type = 2;
}

service RelayService {
rpc RelayConnect(stream RelayMessage) returns (stream RelayMessage);
}

service OrbService {
rpc OrbConnect(stream RelayMessage) returns (stream RelayMessage);
}
Expand All @@ -42,6 +47,14 @@ message Ack {
uint64 seq = 1;
}

message EstablishConnectionRequest {
string client_id = 1;
oneof auth_method {
string token = 2;
ZkpAuthRequest zkp_auth_request = 3;
}
}

message OrbConnectRequest {
string orb_id = 1;
string auth_token = 2;
Expand Down
15 changes: 8 additions & 7 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
[package]
name = "orb-relay-messages"
version = "0.0.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
name = "orb-relay-messages"
version = "0.0.0"
edition.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true

[features]
client = []
server = []

[dependencies]
prost = "0.13.2"
tonic = "0.12.2"
prost = "0.13.2"
prost-types = "0.13.3"
tonic = "0.12.2"

[build-dependencies]
tonic-build = "0.12.2"
Loading