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

Create gRPC FogViewRouterAdminAPI #2360

Merged
merged 1 commit into from
Sep 7, 2022
Merged
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
12 changes: 12 additions & 0 deletions fog/api/proto/view.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,24 @@ import "external.proto";
import "kex_rng.proto";
import "fog_common.proto";

import "google/protobuf/empty.proto";

/// A single Duplex streaming API that allows clients to authorize with Fog View and
/// query it for TxOuts.
service FogViewRouterAPI {
rpc request(stream FogViewRouterRequest) returns (stream FogViewRouterResponse) {}
}

service FogViewRouterAdminAPI {
// Adds a shard to the Fog View Router's list of shards to query.
rpc addShard(AddShardRequest) returns (google.protobuf.Empty) {}
}

message AddShardRequest {
// The shard's URI in string format.
string shard_uri = 1;
}

message FogViewRouterRequest {
oneof request_data {
/// This is called to perform IX key exchange
Expand Down