562f1caa54
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
40 lines
984 B
Protocol Buffer
40 lines
984 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package io.stellarproject.heimdall.api.v1;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
//import "google/protobuf/empty.proto";
|
|
//import "google/protobuf/any.proto";
|
|
|
|
option go_package = "github.com/stellarproject/heimdall/api/v1;v1";
|
|
|
|
service Heimdall {
|
|
rpc Connect(ConnectRequest) returns (ConnectResponse);
|
|
//rpc Nodes(NodesRequest) returns (NodesResponse);
|
|
//rpc Peers(PeersRequest) returns (PeersResponse);
|
|
}
|
|
|
|
message Master {
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
|
string grpc_address = 2 [(gogoproto.customname) = "GRPCAddress"];
|
|
string redis_url = 3 [(gogoproto.customname) = "RedisURL"];
|
|
}
|
|
|
|
message ConnectRequest {
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
|
}
|
|
|
|
message ConnectResponse {
|
|
Master master = 1;
|
|
}
|
|
|
|
message Node {
|
|
string id = 1 [(gogoproto.customname) = "ID"];
|
|
string addr = 2;
|
|
}
|
|
|
|
message NodesRequest {}
|
|
|
|
message NodesResponse {
|
|
repeated Node nodes = 1;
|
|
}
|