Skip to content

Commit

Permalink
Create gRPC FogViewRouterAdminAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
samdealy committed Aug 29, 2022
1 parent e4f73e5 commit 86c0162
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit 86c0162

Please sign in to comment.